Is it just me, or is Bash string manipulation the most god-awful ugly piece of shit there is? I mean, it's functional and everything, but it's like writing your script in Brainfuck. I wanted to make it change "/(letter)/stuff/shit" to "letter:\stuff\shit". Here's what it looked like:
Too bad I never took the time to learn sed. Will do that nao.
Name:
Anonymous2009-08-25 0:30
:|
Name:
Anonymous2009-08-25 2:18
For simple stuff use tr, for more complex stuff use perl; sed has horrible syntax. As does awk, but at least it's field separation often works much better than cut.