Archive for January 1st, 2010

01Jan

Stupid Gawk Trick

Posted by Elf Sternberg as Linux

This morning, for no reason that I’d care to discuss in public, I needed to rename every file in a directory to the index number of its position in the directory in asciibetical order, and add an extension. The harmless version of this was: ls | gawk ‘BEGIN { c = 0; } c += [...]


Recent Comments