Browse Source

add ext to cantos

main
lhess2021 4 years ago
parent
commit
9fe759e138
  1. 13
      shell-scripts.d/rename-txt.sh

13
shell-scripts.d/rename-txt.sh

@ -0,0 +1,13 @@
#!/bin/bash
# Rename canto files
for file in *;
do
if [[ $file != r.sh ]]; then
num="$(echo $file | tr -d -c 0-9)"
pad="$(printf "%03d\n" $num)"
echo "$file: $pad"
mv $file "$pad-purgatorio.txt"
fi
done
Loading…
Cancel
Save