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.

Revisions

  1. damienix created this gist Mar 11, 2012.
    9 changes: 9 additions & 0 deletions rename.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash
    # cp all *.in to *.ans


    for file in *.in
    do
    f=${file%%.in}
    cp "$f.in" "$f.ans"
    done