From 23dfbf159295fe8424caa4bda9063c5a67fdfe5a Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 22 Mar 2023 15:09:25 +0500 Subject: [PATCH] repace spaces with under score --- bashrc | 2 ++ 1 file changed, 2 insertions(+) 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