Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 837

Comment by Kamil Maciorowski on Grep keeps duplicate lines output to txt

$
0
0
Probably not possible with sole grep. The tool is a filter. A line from the input either matches one of the patterns and it passes the filter, or it does not match any of the patterns and it gets "blocked". There is no mode that "multiplies" lines. Do you need the output to keep the order given in File1? Do you need the output to keep any order?

Viewing all articles
Browse latest Browse all 837

Trending Articles