Shell Script Functions: Define and Use Them
Scripts sometimes need to run the same task with different input. A Bash function names a group of commands and accepts arguments when the script calls it. I’ll walk through passing arguments to functions and choosing between a status and printed data for results. TL;DR A Bash function gives a name to commands you can
Shell Script Functions: Define and Use Them Read More »