Quantcast
Channel: grep – Arabesque
Browsing latest articles
Browse All 8 View Live

Elegant Awk usage

For many system administrators, Awk is used only as a way to print specific columns of data from programs that generate columnar output, such as netstat or ps. For example, to get a list of all the IP...

View Article



Unix as IDE: Files

One prominent feature of an IDE is a built-in system for managing files, both the elementary functions like moving, renaming, and deleting, and ones more specific to development, like compiling and...

View Article

Counting with grep and uniq

A common idiom in Unix is to count the lines of output in a file or pipe with wc -l: $ wc -l example.txt 43 $ ps -e | wc -l 97 Sometimes you want to count the number of lines of output from a grep...

View Article

Default grep options

When you’re searching a set of version-controlled files for a string with grep, particularly if it’s a recursive search, it can get very annoying to be presented with swathes of results from the...

View Article
Browsing latest articles
Browse All 8 View Live




Latest Images