How to Copy text from file set & place text into another file.
Hi,
this thread is old but i'm having the same problem with some differences.
I have hundreds of files, that are the output of a program and i need that information in only one file.
The file that are the output of a program have text information from the lines 2 to 48.
I need to copy this text from all the files to another.
Example:
Inside file1:
line1:"#$$&%/$57477$%&$"&%"
line2:this is a variable1=1
line3:this is a variable2=3
...
line48:this is other variable48=22
line49:"!#!"#!"#!"#
Inside file2:
line1:"#$$&%/$57477$%&$"&%"
line2:this is a variable1=1
line3:this is a variable2=3
...
line48:this is other variable48=22
line49:"!#!"#!"#!"#
And i need an output called newfile like:
file1
line2:this is a variable1=1
line3:this is a variable2=3
...
line48:this is other variable48=22
file2:
line2:this is a variable1=1
line3:this is a variable2=3
...
line48:this is other variable48=22
Is it possible?
Need some help to do this if possible.
|