Wednesday, January 20, 2010

changing cases

sed 's/[[:lower:]]/\u&/g'

this quick and simple sed command helps in further editing of GAMESS input files.I was suffering of case-sensitivity of sed because I had a lot of GAMESS inputs where 'optimize' could be written as 'Optimize' or 'OPTIMIZE'. So I had to change RUNTYP by hands in a really huge number of molecular entities).
I'm happy now.

No comments:

Post a Comment