Hi,
My input is present as shown below
Test.File&line..Valfile
Test.File&line..Srtfile
output should be:
Test.File1.Valfile
Test.File2.Valfile
Test.File3.Valfile
Test.File4.Valfile
Test.File1.Srtfile
Test.File2.Srtfile
Test.File3.Srtfile
Test.File4.Srtfile
I mean to say when ever I find "&line." in my input record then total 4 records should copy to output file by replacing &line. as 1,2,3,4.