what command would I use to see all lines from a file starting with a line that I find with grep
so I imagine something like a tail, but beginning from a line that I identify with a grep.
For example I am looking at a log and I can identify a point that has a time in it. So I want to see all log lines that come after the log line that contains a particular date time.
gnu grep
regardless of the no. of lines in your input:{ grep -m1 pattern; cat; } <infile
– don_crissti Feb 19 '16 at 17:23grep
will stop reading the file after the first match and the rest will be displayed becausecat
takes over the rest of the input since the whole file is passed to the group? – FelixJN Feb 19 '16 at 18:50