Always put
set -e
in your bash scripts.
To secure shit:
[ ! -f $(basename "$0") ] && exit 1
set -e
in your bash scripts.
[ ! -f $(basename "$0") ] && exit 1
# Basic - ripgrep behaves as if reading each file line by line # Automatic filtering - `-u` from unrestricted - `-u` = .gitignore, `-uu` += hidden files and dirs, `-uuu` binaries # Manual filtering - `-g '!*.toml` = gitignore expressionlike (can be used multiple times) # Useful flags - `-F` - do not use regexp - `-L` - follow symlinks - `-U` - matches multiline - `-S` - smart case (case ins. if only small letters in search) - `-i` - case insensitive - `-C` - show lines surrunding search term - `--debug`