Hello,
I've a text file with similiar contents:
1
abc
2
abc
3
def
4
abc
5
def
6
abc
7
abc
Questions:
1. How to join each 2 lines (starting from top of hte file) to one line
2. How to print line containing def and one line before each of this line
I have no gnu grep in my system.
regards,
m.
I've a text file with similiar contents:
1
abc
2
abc
3
def
4
abc
5
def
6
abc
7
abc
Questions:
1. How to join each 2 lines (starting from top of hte file) to one line
2. How to print line containing def and one line before each of this line
I have no gnu grep in my system.
regards,
m.