Re:Badassify your terminal and shell
by aethertap on Wednesday November 05, 2014 @07:24PM
(#8565130)
I have one more that I like. I call it 'rex' and it basically allows me to do a regex substitution on command line text (not stdin, but actual command line args). It mostly comes in handy when looping over files in a directory where I want to do some kind of processing based on information in the file name. For example, I can tag all of the episodes of a podcast with their track numbers (several podcasts I listen to don't do id3tags) with this command:
The script itself is really simple, but I can post the source if anybody's interested.
[ Parent
| on HN ]
There are no comments on this comment yet.