Hi, With reference to the attached file (FILE-A), I want line 1 and line 2 printed to a file (say, FILE-B) should line 3 and line 4 contain 4 and 5 respectively. In other words, if line 3 contains 4 and line 4 contains 5, print the entire line 1 and line 2 for that particular group of four lines to the file, FILE-B.
Could you, please, assist me with a Perl script to do this. Best regards, Ken <<FILE-A.txt>>
abcdb123 12345 aqsdr9gv4nmku qasd45c abtydb093 122w35 aqsdrg9v46nmku qas45cdf abcdb2093 2389gh345 aqsdr9gv4nmku fga45cs pkldb4703 9874yu3 csdxsdrgv4nmku plk45cvbm ghcdb123 87rtvfd9 aqsdrgv8nmku kre45cac
