Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
help:general_linux:linux_advanced [2016/05/18 14:13] – jebailie | help:general_linux:linux_advanced [2016/05/18 14:23] (current) – jebailie | ||
---|---|---|---|
Line 30: | Line 30: | ||
" | " | ||
- | * 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) and can be specified with -F |
< | < | ||
- | user@tim: | + | user@tim:~$ awk ' |
cat | cat | ||
dog | dog | ||
Line 70: | Line 70: | ||
3 fish water food | 3 fish water food | ||
4 cow pasture grass | 4 cow pasture grass | ||
+ | </ | ||
+ | |||
+ | ==== diff ==== | ||
+ | " | ||
+ | |||
+ | < | ||
+ | user@tim:~$ diff --help | ||
+ | Usage: diff [OPTION]... FILES | ||
+ | Compare FILES line by line. | ||
+ | // snip // | ||
+ | | ||
+ | user@tim:~$ diff test.file new.file | ||
+ | 1c1 | ||
+ | < 1 cat barn food | ||
+ | --- | ||
+ | > 1 lion barn food | ||
</ | </ | ||