skip to main | skip to sidebar

the evil roundabout

things that I need to remember, would like to build, simplistic coding things & reminders etc.

Saturday, February 21, 2009

perl one-liner

perl -e 'while(<*.png>){$n=sprintf("%02d",++$i,$_);rename($_,$n."frumpus\.png")}'

append an ascending number to all the files in a directory: ie "27frumpus.png"
Posted by Anonymous at 2:26 AM No comments:
Labels: Perl
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Pages

  • Home
  • Contact Me
  • what I've been doing lately
  • other things that I've been doing
  • catfingers.net
  • ss64.com

Blog Archive

  • ►  2023 (1)
    • ►  July (1)
  • ►  2022 (1)
    • ►  January (1)
  • ►  2017 (1)
    • ►  November (1)
  • ►  2013 (8)
    • ►  October (3)
    • ►  August (2)
    • ►  June (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2012 (3)
    • ►  November (2)
    • ►  July (1)
  • ►  2011 (7)
    • ►  August (2)
    • ►  February (4)
    • ►  January (1)
  • ►  2010 (2)
    • ►  November (1)
    • ►  January (1)
  • ▼  2009 (5)
    • ►  November (4)
    • ▼  February (1)
      • perl one-liner
  • ►  2008 (10)
    • ►  November (4)
    • ►  May (5)
    • ►  January (1)
  • ►  2007 (6)
    • ►  December (3)
    • ►  October (3)

About Me

Ash
View my complete profile