Dear Ferret Users, Thank you for responses, it solves the problem. Meanwhile, to avoid redoing some Ferret batches I've done before, I put together simple c-shell script that does renaming job (without leading zeros, if indeed someone cares about it) *******************ordering_scrip*************** #!/bin/csh/ # This c-shell script "ordering_script" RENAMES Ferret-produced # series of GIF-frames conventionally named # frame.gif, frame.gif.~1~, frame.gif.~2~ # to series of GIF-frames conveniently and commonly named # frame1001.gif, frame1002.gif, ... # # NOTE: 1. note +1 shift in numbering # 2. The loop limit is set to 250, hardwiring in the script end # 3. All frames must be in the same (current) directory. # 4. To execute >source ./ordering_script # 5. check THE SCRIPT file mode, it must be executable # >chmod 775 ./ordering_script # First frame, this is special case echo "mv frame.gif frame1001.gif" mv ./frame.gif ./frame1001.gif #Renaming loop starts @ p = 1 @ pp = 1002 echo "renaming loop starts with P=$p and PP=$pp" renaming: foreach f (frame.gif.~$p~) echo "Found $f, renaming it to frame$pp.gif" mv ./$f ./frame$pp.gif end @ p++ @ pp++ if ($p < 251) goto renaming exit ********************************** Dr. Sergei Maurits, HPC Specialist Arctic Region Supercomputing Center University of Alaska Fairbanks Fairbanks, AK 99775-6020 907 450 8697 voice 907 450 8604 fax. maurits@xxxxxxxx On Jul 18, 2011, at 8:22 PM, Sergei Maurits wrote:
|