How to

Here is list of my personnel how to, it's mostly for me to help me remember how I at some point figure out how to do something... PS: if you like to contribute to my How To blog, let me know and I will give you access to do so.

Friday, March 16, 2007

How to Batch Change file names under tcsh

## example: for each file ending by .jpg, replace any spaces with underscores

foreach i (*.jpg*)
echo $i > /tmp/nom
set j=`sed -e '1,$s? ?_?g' /tmp/nom`
mv "$i" "$j"
\rm /tmp/nom
end
Posted by Eric Thibeault at 6:57 PM
Labels: HowTo, Unix

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

About Me

  • Eric Thibeault
  • LTNak

Blog Archive

  • ►  2011 (1)
    • ►  September (1)
  • ►  2010 (1)
    • ►  June (1)
  • ►  2009 (1)
    • ►  May (1)
  • ►  2008 (4)
    • ►  October (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2007 (13)
    • ►  April (1)
    • ▼  March (12)
      • How to copy data between 2 different Oracle or MSS...
      • How to create a table from a select statement
      • How to make Final Cut work on pre-AGP older Macs
      • How to connect to your Tivo Dvr Serie 2 with your ...
      • How to copy files using tar without a tar file / H...
      • How to partition/format a disk under linux
      • How to mount a webdav share with a comand line
      • How to rsync data from one UNIX server to an other
      • How to mount an iso on Linux
      • How to create an iso image on linux (dd/mkisofs)
      • How to Batch Uppercase/lowercase file/directory
      • How to Batch Change file names under tcsh

Categories

  • AJAX (1)
  • Backup (1)
  • EC2 (1)
  • HowTo (16)
  • MacOSX (2)
  • MSSQL (5)
  • Oracle (3)
  • Outlook (1)
  • PC (3)
  • Performance (1)
  • SQL (4)
  • Tivo (1)
  • Unix (9)
  • Web (1)
Picture Window theme. Powered by Blogger.