Dec 24, 2007
Changing files to lower case with Bash and tr
I'm sure there are a number of ways to change a directory of files to lowercase including the mmv utility for 'wildcard' renaming and copying. However, this simple one-liner is likely to work on a wider range of systems without installing additional programs since it only requires bash and tr:
Posted at 11:40 |
Comments(0) |
Permalink |
Trackbacks(0) |
Tags: Bash, regex, Unix |
add to del.icio.us
Sep 29, 2007
grep vs 'grep -E'
Well this might seem blindingly obvious to some, but I was stumped for half an hour this morning trying to figure out why 'grep he+' wasn't finding the word 'hello' in a test file when it was obviously there. The answer was that I should have read the manpage very carefully. The all-important paragraph reads as follows:
Posted at 00:32 |
Comments(0) |
Permalink |
Trackbacks(0) |
Tags: grep, regex |
add to del.icio.us

