Filtering
Many filter style programs provide the capability to manipulate the contents of files (for example, the commands, grep, tail, head, wc, sed, awk, xargs, and so on). Several of these are so powerful that they are the subject of separate books. Generally, a filter can accept input from stdin and pushes output to stdout. Become proficient with filter commands, and the need for using scripts to open individual files is diminished. Your creations will become more succinct and powerful. Many of these commands could easily take up a chapter on their own, but in this book, I'll introduce them and entice you to check them out on your own.
head
If you need to display the beginning lines of a file, use the head command. The head command outputs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access