From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/yt-fix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.local/bin/yt-fix') diff --git a/.local/bin/yt-fix b/.local/bin/yt-fix index 69e771a..efb76ad 100755 --- a/.local/bin/yt-fix +++ b/.local/bin/yt-fix @@ -7,7 +7,7 @@ stdin() { do ext=".$(echo $infile | rev | cut -d '.' -f 1 | rev)" ext_length=${#ext} - remove=$((12+$ext_length)) + remove=$((15+$ext_length)) filename="$(echo $infile | rev | cut -c $remove- | rev)" mv "$infile" "$filename$ext" done @@ -18,7 +18,7 @@ cli() { do ext=".$(echo $infile | rev | cut -d '.' -f 1 | rev)" ext_length=${#ext} - remove=$((12+$ext_length)) + remove=$((15+$ext_length)) filename="$(echo $infile | rev | cut -c $remove- | rev)" mv "$infile" "$filename$ext" done @@ -39,4 +39,3 @@ do done [ $read_stdin -eq 0 ] && cli "$@" || stdin - -- cgit v1.2.3