3 ms·
I know how to do exactly one thing in sed, and that's sed 's/blah/blahprime/' somefile. If sed has capabilities other than that, I don't particularly care... b
by hugh3 15y ago
I know how to do exactly one thing in sed, and that's sed 's/blah/blahprime/' somefile.
If sed has capabilities other than that, I don't particularly care... but that's one thing that I need to do frequently which is more painful in awk or python.
- dbbo 15y agoI would guess that that's all a significant number of unix-like OS users do with sed, and in those circumstances, it does make more sense to use sed than a more extensive language. For simple substitutions like that, I'd just use an alias: alias ped='perl -lpe' to save the extra keystrokes.