Daily Archives: March 1st, 2014

Pattern matching – Part 1

Pattern Matching Part 1 – grep Today I am starting sessions on pattern matching utilities available on GNU / Linux systems. grep command does pattern matching on files. One of the beauty of commands of GNU / Linux systems is that it reads from standard input and writes to standard output. This makes commands work in […]

Merge lines of files

Paste command merges lines of files. In one way, it joins two files. Note that join command has different meaning. I will talk about join command some other day. Let us take one example of paste. rahul@rahul-Aspire-4736Z:~$ cat test1.txt 1 2 3 4 5 6 rahul@rahul-Aspire-4736Z:~$ cat test2.txt a b c d e f rahul@rahul-Aspire-4736Z:~$ […]