ataraxia
unbounded joy or the musings of a sysadmin.
Thursday, January 15, 2015
what can grep do for you?
a lot actually. suppose you want to see what lines are the same in a file. here's how to do it:
fgrep -xf file1 file2 > file3
file3
is what is the same. and now you know.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment