I have one of these files.
There are numbers on the first line, alphabets on the second line, special characters on the third line.
This repeats itself. What I mean is the first line is number the second line is alphabet the third line is special character the fourth line is number the fifth line is alphabet 6th line is special character and repeated again and again and again. I want to pull out the lines with the alphabet and redirect them to another file.
I know how to redirect. And here's the command I know.(I think this can be a hint....)
sed -n '1 ~ 2p' file name (output all odd lines) and sed -n '1 ~ 2! p' (output all even lines)
I really wonder how to do this.
Also, I'm curious about the command to draw only lines with numbers and special characters. Well
The command which you can use is the above two commands. (I'm curious to use sed)
I really want to know.