|
Hi
Thanks for the replies
Just wanted to be clear
lets assume i have a file1.txt which has the following
aaa
bbb
bbb
ccc
qqq
343
454
eee
i am looking for a string 343 once the script finds 343 it should delete 4 lines above it and 2 lines below it
the output file should be
qqq
Thanks
|