3 ms·
basic regexp search and replace with sed is pretty simple, but it gets hairy VERY fast beyond that in my opinion. awk I love, I find it very simple and intuitiv
by ams6110 12y ago
basic regexp search and replace with sed is pretty simple, but it gets hairy VERY fast beyond that in my opinion. awk I love, I find it very simple and intuitive.
Also gnu awk, sed, and grep are not the same as BSD variants. The gnu versions have (some would say suffer from) a lot more features.
For me, anyone who uses unix and doesn't have working knowledge of how to use find, xargs, sed, awk, and grep is missing out on a lot and very likely wasting time reinventing wheels.
- eropple 12y agoI'll use awk for that stuff when it occurs to me, sure. Most of what I do is pretty straightforward transforms, and chaining together a couple sed commands often comes to mind first. I use the GNU tools for consistency, as it's easier to install them on a BSD system than the reverse, but your point is well-made.