Posted By

noah on 01/15/10


Bash commandline one-liners

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Renumber the files in a directory, or prefix file names with numbers

 / Published in: Perl

Useful for renumbering frames to feed into ffmpeg

  1. perl -e '$i=0; while (<*png>) {++$i; $count = sprintf("%05d", $i); `mv $_ $count-$_`}

Report this snippet  

You need to login to post a comment.