I have a text file made of different blocks separated by blank lines. I need to print the blocks with odd indexes. How can I get it with awk?
For example i need to print the first and the third block of a file like this:
asgdg sadsd ssgsdgd
ass uff fedd sddddso
ieeduydd dddee deeo
ssancnc chhdh cchdd
aasi askf fkf kff
sskkkk dddu dduu
Thanks, it works. Now i need to count the characters in each block in the file but only if the preceding block contain a specific expression in the first line.
Thanks in advance
Andrea Musella
Please open a new thread if you have another question.
Post the input file and the expected output within code tags and give the exact conditions.
Regards
Hello Franklin i am also check ur coding.. it's working.. i appreciate u..