On Linux/Unix/MacOS:
find . | grep " "
On Windows:
Get-ChildItem -Path "." -Recurse -Filter "* *" | Format-Table FullName
On Linux/Unix/MacOS:
find . | grep " "
On Windows:
Get-ChildItem -Path "." -Recurse -Filter "* *" | Format-Table FullName
fileName="my-file.yaml"
find . -type f -name "$fileName" -printf "%h\n"
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]