checking if a directory exists in bash
if [[ -d 'my/directory' ]] then
echo "The directory exists"
fi
if [[ ! -d 'my/directory' ]] then
echo "The directory does not exist"
fi
Also in Shell:
- Failed at the [email protected] postinstall script.
- package 'mana-toolkit' has no installation candidate
- powershell script enable tls 1.2
- run python program from command line
- bash write
- delete git
- kill process in windows powershell
- how to make file in terminal ubuntu
- recursive grep recursion depth
- how to uncommit my last commit in git
- clear ram linux
- yarn add global
- how to commit a branch in git
- delete a file in cmd windows
- vi replace all
- how to get git username and password
- linux delete appledouble ds_store files
- copy folder from s3 to local
- bash measure execution time
- pip installer for mac
- powershell get date
- how to turn off bluetooth in ubuntu 18.04 terminal
- docker build from github repository
- gitlab docker runner