You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rename.sh 172B

4 yıl önce
12345678910111213
  1. #!/bin/bash
  2. # renames.sh
  3. # basic file renamer
  4. for file in *.png
  5. do
  6. mv "$file" "p${file%.png}.png"
  7. done
  8. for file in *.jpg
  9. do
  10. mv "$file" "p${file%.jpg}.jpg"
  11. done