Wallflux - external link: Institute for Signal and Information Processing

 Unregistered Wallflux
Register your Wallflux now!


Read more about registration here

You are viewing a link of an unregistered Wallflux.
Wallflux.com is a free service which provides RSS feeds for Facebook groups, pages and events.
To get your own Wallflux-feed, visit www.wallflux.com.

To avoid this page and go directly to the wall post, register this Wallflux today!


Google-ads:

link:

http://www.facebook.com/groups/isip.piconepress/permalink/137737336364074/

Joseph Picone: How do you generate a list of filenames?

I have spoken in the past about the wonders of emacs macros. You can easily chop up and merge multiple lists to generate a shellscript to create filenames in a particular format. For example, suppose you have this:

foo_3_87.jpg
goo_9_36_joe.jpg
marysfilename.jpg

You can do something like the following:

ls *.jpg > x.sh
nl -n rz -v 0 -w 6 x.dat
... use an emacs macro to merge these two lists ...

resulting in a file x.sh that looks something like this:

mv foo_3_87.jpg img_000000.jpg
mv goo_9_36_joe.jpg img_000001.jpg
mv marysfilename.jpg img_000002.jpg

Run: sh -x x.sh

and Bam! there you have it ;)

The nl command is nice because it generates zero-padded text strings for you.  1 (15-07-2012)
group info:

Institute for Signal and Information Processing

Creator: Joseph Picone
This Facebook group is the home for the Institute for Signal and Information Processing (ISIP). Founded on October 1, 1994, with a history that dates back to the early 1980's, ISIP has been committed to the development of public domain software. Enjoy our web site at www.isip.piconepress.com.


Return to Wallflux.com