Needed to head all files in a directory.
Using bash I needed to check that a file exists, then do something. This one turns out to be super simple. I wanted to conditionally load a db file if it existed in this case. What I needed was, a check for the file in bash. Then execute the command. In this instance it was to Read more about Bash test if file exists[…]