Looping Through Files

Looping Through Files

So the other day I needed to loop though some files that included a specific string. This is how I went through my files and rename it.

n *_60.png
  do
      mv "$file"  "${file/.png/@2x.png}"
  done

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *