9
votes
3answers
1k views

cat all lines from file, which are after “KEYWORD” [duplicate]

I have a file, with a "KEYWORD" on line number n. How can I print all lines starting from line n+1 until the end? For example, here I would liek to pro=int only lines DDD and EEE AAA BBB CCC KEYWORD ...
3
votes
2answers
128 views

Reading from a serial interface

I have a serial device running which I need to read data from(I have absolutely no control over the device itself) except reading its output; using hyper terminal in Windows I am able to detect a ...
0
votes
4answers
124 views

concatenating multiple files with multiple headers

Im trying to concatenate multiple files with multiple headers to have one file with all the information in it for example. File 1: Numbers 1 2 3 Letters A B C File 2: Numbers 4 5 6 Letters D E ...
9
votes
10answers
7k views

How can I “cat” a file and remove commented lines?

I'd like to know if there is a way that I could cat file like php.ini and remove all lines starting with ; For example, if the file contained this: ; - Show all errors, except for notices ; ...