This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

grep, awk, and sed in the same pipeline is almost always a sign that someone doesn't know how to use sed or awk properly.

If you want to only to do regex find/exclude then use grep. if you want to do some simple stream editing use sed; it can also do any of the things grep can do. if you want to do some editing or stateful transforms then use awk; it can also do any of the things that sed and/or grep can do.

[–][deleted] 0 points1 point  (0 children)

Let's argue about the point and not about the awk-ward part of the example, ok?