From Source git clone https://github.com/alexanderepstein/Bash-Snippets # clone the repository cd Bash-Snippets # cd into the cloned directory git checkout v1.23.0 # Git checkout to the latest stable release ./install.sh all # install all scripts or ./install.sh stocks # to install...
--unlink remove file before clobber --keep-badhash keep files with checksum mismatch (append .badhash) --metalink-index=NUMBER Metalink application/metalink4+xml metaurl ordinal NUMBER --metalink-over-http use Metalink metadata from HTTP response headers --preferred-location preferred location fo...
命令rmdir(remove directory)删除一个目录。这个目录必须是空的。它有两个开关: n --ignore-fail-on-non-empty——当删除的目录中有文件时,不不报告错误。 n --parents(-p)——删除所有的父目录及子目录。 $ rmdir read_only rmdir: read_only: Directory not empty $ rmdir --parents read_only/backup/...
Includes autocompletion, themes, aliases, custom functions, a few stolen pieces from Steve Losh, and more. Bash-it provides a solid framework for using, developing and maintaining shell scripts and custom commands for your daily work. If you're using the Bourne Again Shell (Bash) regularly and...
## Remove assets quickly from Akamai / Amazon cdn ## alias cdndel = '/home/scripts/admin/cdn/purge_cdn_cache --profile akamai' alias amzcdndel = '/home/scripts/admin/cdn/purge_cdn_cache --profile amazon' ## supply list of urls via file or stdin ...
Oftentimes, you'll see rm used with the-rflag and the-fflag. The-fflag is a sort of a nuclear option. It prevents Bash from prompting you for confirmation when you remove a file, as well as erroring out if a file or directory doesn't exist. If we do that on a, that will remov...
checks/check_sqlfluff.sh - recursively iterates all SQL code files found in the given or current directory and runs SQLFluff linter against them, inferring the different SQL dialects from each path/filename/extension AWS - Amazon Web Services aws/ directory: AWS scripts - aws_*.sh: aws_pr...
"User configurable variables are in" "setupTermuxArchConfigs.bash" ". To create this file from" "kownconfigurations.bash" "in the working directory, run" "bash ${0##*/} manual" "to create and edit" "setupTermuxArchConfigs.bash" "." printf "\\n\\e[1;33m %s\\e[1;34m %s \\e[...
") # Push Fruits+=('Watermelon') # Also Push Fruits=( ${Fruits[@]/Ap*/} ) # Remove by regex match unset Fruits[2] # Remove one item Fruits=("${Fruits[@]}") # Duplicate Fruits=("${Fruits[@]}" "${Veggies[@]}") # Concatenate lines=(`cat "logfile"`) # Read from file...
an empty file calledlsthat is run (and does nothing—it’s empty) instead of the normallscommand located at/bin/ls. Since we started this example by running a new copy ofbash, you can exit from this mess by exiting this subshell—but you might want to remove the boguslscommand first:...