Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
help:general_linux:linux_advanced [2016/05/18 14:04]
jebailie [Linux Commands : advanced]
help:general_linux:linux_advanced [2016/05/18 14:13]
jebailie
Line 9: Line 9:
  
 ==== grep ==== ==== grep ====
- : "searches the named input FILE for lines containing a match to PATTERN"+"searches the named input FILE for lines containing a match to PATTERN" 
 + 
 +* Good for searching a file for a certain pattern
 <code> <code>
 user@tim:~$ grep --help user@tim:~$ grep --help
Line 26: Line 28:
  
 ==== awk ==== ==== awk ====
- : "pattern scanning and processing language"+"pattern scanning and processing language"
  
- : good for printing columnar data, note that the field separator (between the columns) can be anything (space, tab, colon, etc)+good for printing columnar data, note that the field separator (between the columns) can be anything (space, tab, colon, etc)
 <code> <code>
 user@tim:~$ cat test.file |awk '{print $2}' user@tim:~$ cat test.file |awk '{print $2}'
Line 38: Line 40:
  
 ==== sed ==== ==== sed ====
- : "stream editor for filtering and transforming text"+"stream editor for filtering and transforming text"
 <code> <code>
 user@tim:~$ sed s/cat/lion/ test.file user@tim:~$ sed s/cat/lion/ test.file