Public Notes on
View Public Collections
Loading...
sed '/^Finished: SUCCESS$/ q0; /^Finished: FAILURE$/ q1' #tail #sed #exit #shell #unix #bash #pub
Show More
Loading...
Safe ways to do things in bash Why bash? Bash has arrays and a safe mode, which may make it just about acceptable under safe coding practices, when used correctly. Fish is easier to use correctly, but lacks a safe mode. via Pocket #shell #bash #safe #programming #scripting #pub
Show More
Loading...
BashFAQ/050 - Greg's Wiki mywiki.wooledge.org
I'm trying to put a command in a variable, but the complex cases always fail! Variables hold data. Functions hold code. Don't put code inside variables! There are many situations in which people try to shove commands, or command arguments, into variables and then run them. Each case needs to be handled separately. For the simple case in bash, you can use an array to store arguments to pass to a command (similar to constructing a command using args only known at runtime, below): #code #bash #command #variable #array #pub
Show More
Loading...
bash indirect reference variable intern #reference #bash #variable #intern #indirect #pub
Show More
Loading...
BashPitfalls - Greg's Wiki mywiki.wooledge.org
This page is a compilation of common mistakes made by bash users. Each example is flawed in some way. #shell #bash #scripting #pitfalls #programming #pub
Show More
Loading...
Shell Field Guide raimonster.com
This booklet is intended to be a catalog of tricks and techniques you may want to use if you're doing some sort of complex scripting. Some are just useful, some are more playful, and might not have such direct impact in your day-to-day life. Some are pure entertainment. You'll have to judge by yourself which things belong to which category. I'll try to keep the rethoric to the minimum to maximize signal/noise. The git repo is at https://github.com/kidd/scripting-field-guide/ and both contents, order and wording are WIP. #bash #bestpractices #shell #programming #pub
Show More