Search results

  1. R

    Renaming file-extention in the terminal?

    I found this: foreach old ( *.c ) set new=`echo $old | sed 's/.c/.cc/'` mv $old $new end here To test, I made it a shell script called renamer in a test directory called renamer. ( I changed .c to .j because I had no .j files, just in case) #!/bin/tcsh foreach old ( *.j )...
Back
Top