I got a really big logcat (since 2016) and I'm interested in printing everything (all the rows) after a point (let's say, September). The logcat is really big, so I can't really use tail.
Asked
Active
Viewed 5,378 times
1 Answers
2
To print everything after matching a "needle", using sed:
sed -n '/needle/,$p' filename
Replace needle with the actual pattern you witch to match at which point in the file to being printing.
DopeGhoti
- 73,792
- 8
- 97
- 133
-
2`sed -n '/needle/,$p'` if you don't want to stop at the second needle. – ilkkachu Sep 20 '18 at 19:26
-
There won't be a second needle because I use timestamps. Thanks a lot! – Dorian Diaconu Sep 21 '18 at 05:25