Skip to content

Instantly share code, notes, and snippets.

@kittinan
Created August 15, 2018 02:57
Show Gist options
  • Save kittinan/fc76b4f676a4c22be1f8d1dcc6b24d68 to your computer and use it in GitHub Desktop.
Save kittinan/fc76b4f676a4c22be1f8d1dcc6b24d68 to your computer and use it in GitHub Desktop.
shell script add prefix to file
#!/bin/bash
for f in * ; do mv -- "$f" "PRE_$f" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment