diff --git a/bashrc b/bashrc index 040a29b..c848eae 100644 --- a/bashrc +++ b/bashrc @@ -43,6 +43,8 @@ edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);} #root(){ su -c "$@";} # view md file on cli catmd() { pandoc $1 | lynx -stdin;} +# replace white spaces in file name with underscores +rmspace() { for file in *; do mv -- "$file" "${file// /_}"; done;} ############################################################################### ### Enter container