commit 518fd1dd0ec5f3dd4019e868ea2ec5a2009f24ad
parent cb6e225e1293d2d7f95320acdb2b21712e4c721c
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Tue, 30 May 2023 21:12:58 +0200
Replaced \t (non-portable) with literal tab
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/virename b/virename
@@ -15,8 +15,8 @@ if [ "$(wc -l $file | awk '{print $1}')" != \
echo "Error reading new file names"
else
paste "$file" "$file2" | while read f; do
- fold=$(echo "$f" | sed 's/\t.*//')
- fnew=$(echo "$f" | sed 's/.*\t//')
+ fold=$(echo "$f" | sed 's/ .*//')
+ fnew=$(echo "$f" | sed 's/.* //')
if [ "$fold" != "$fnew" ]; then
mv "$fold" "$fnew" \
|| echo "Error renaming $fold to $fnew"