Hacker News new | past | comments | ask | show | jobs | submit login

Depends on the task. Sed is typically used for search and replace and Awk is better suited for field based processing. Both these tools also have filtering features (regexp based, line number based, range, etc).

See also: When to use grep, sed, awk, perl, etc https://unix.stackexchange.com/q/303044




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: