Sample Header Ad - 728x90

How to print all lines after a match up to the end of the file?

101 votes
13 answers
188288 views
Input file1 is: dog 123 4335 cat 13123 23424 deer 2131 213132 bear 2313 21313 I give the match the pattern from in other file ( like dog 123 4335 from file2). I match the pattern of the line is dog 123 4335 and after printing all lines without match line my output is: cat 13123 23424 deer 2131 213132 bear 2313 21313 If only use without address of line only use the pattern, for example 1s how to match and print the lines?
Asked by loganaayahee (1209 rep)
Nov 23, 2012, 07:17 AM
Last activity: Aug 2, 2025, 07:26 AM