UNIX Tools – examples

Here are a few examples you’ll probably find useful at some point. Counting the number of lines of a C project $ wc -l `find -name “*.[ch]”|xargs` Execute a command on a directory and all its subdirectories $ find “path”…

More Details
grep

grep is a tool to extract text lines from files (or command outputs using pipes). You’ll use it without end once you’ll know how to do! $ grep pattern from_file $ cat from_file | grep pattern $ some_command_text_output | grep…

More Details

Quick Contact Form