fileName="my-file.yaml"
find . -type d \! -exec test -e '{}/'$fileName \; -print
This could easily be extended to do different tests on the folder by changing the -exec
block to something else.
fileName="my-file.yaml"
find . -type d \! -exec test -e '{}/'$fileName \; -print
This could easily be extended to do different tests on the folder by changing the -exec
block to something else.
Often times we need the current date (and time) when scripting inside bash or other shells. For example when creating a backup file or writing to a log.
[Read More]Often times when writing scripts I want to reference files in the same directory, but keep the script portable in case it is part of a git repository being checked out somewhere else or just the folder getting moved.
[Read More]Copy & paste from untrusted sources on the internet into the terminal is a really bad idea! Early in my career I did it too and still often see others doing it.
[Read More]