Skip to content

Instantly share code, notes, and snippets.

@damienix
Created March 11, 2012 11:10
Show Gist options
  • Save damienix/2016024 to your computer and use it in GitHub Desktop.
Save damienix/2016024 to your computer and use it in GitHub Desktop.
Mover
#!/bin/bash
# cp all *.in to *.ans
for file in *.in
do
f=${file%%.in}
cp "$f.in" "$f.ans"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment