I am trying to find the meaning of: diff filename 1 filename2 | grep '^[<>]' | sed "s/^> (.*)/\1 some string/;"
Please break this down for my understanding. I know a few because, am using them but some, are just a bunch of character
|
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
42 is always a valid answer :p Except for that,
gets the differences of the files
keep only lines starting with < or >
for details read sed's manual, but what is does is to append a string at the end of the line |
|||||
|