https://software.codidact.com/categories/38/tags/4853.rssNew Posts Tagged 'shell' - Software DevelopmentSoftware Development - Codidact2022-07-22T01:05:42Zhttps://software.codidact.com/posts/286764How to use grep to print only specific word from a stringMeganhttps://software.codidact.com/users/566242022-07-20T21:26:07Z2022-07-22T01:05:42Z<p>I have a variable that contains a string:</p>
<pre><code class="language-bash">$CCSR = "branches/features/arm_and_musl"
</code></pre>
<p>I want to get only the part after the last <code>/</co...https://software.codidact.com/posts/286480How to open a file and edit its content in groovy scriptMeganhttps://software.codidact.com/users/566242022-05-17T17:37:25Z2022-05-20T14:55:48Z<p>I have a Makefile in my Jenkins job's workspace, that I want to edit out certain parts from and then save it, before running next part of the script that uses this Makefile.</p>
<p>The part tha...https://software.codidact.com/posts/284708How do I support tab completion in a python CLI program?ajvhttps://software.codidact.com/users/532422021-10-26T16:11:27Z2021-10-26T20:49:20Z<p>I spend a lot of time writing CLI tools in Python, and I would like to support tab-completion in a style similar to Git. For example, subcommands should be tab-completable, options should expand...https://software.codidact.com/posts/281034What are field separators in operating-programming languages (such as Bash)?deleted user#2021-03-11T08:07:56Z2021-03-25T15:33:49Z<p>The concept of <em>field separator</em> has some private cases in different operating system shells and their utilities (<strong>IFS</strong> on Bourne shell and derivates, <strong>RS</strong> o...