Bash

Parsing a CSV file using …

Often times I need to do something multiple times with different input values. Like recently I needed to add a bunch of folks to a team in GitHub for an upcoming training session, easy to do for one or two, not for 200+. Luckily I had everyone’s information in a .csv file, that turned into a …

Using Variables with Sed …

If you’ve every wanted to do some simple find and replace on string values sed is pretty straightforward way to do it from the command line or a script. Our starting sed command: sed 's/findme/replacewithme/g' file-to-search.txt > file-to-write-output.txt In this command we define a …

Named Parameters In Bash

Sometimes we need to pass multiple arguments to a shell script and often we don’t need to pass all arguments to our script every time, that’s where named parameters comes in. With named parameters we can pass something like “–school hard knocks” to our script. However …