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. |
Moderator Response
Hi,
Welcome to LQ! Please do not hijack threads. You posted to a old thread with no real contribution to that thread. You should have created a new thread. Your post has been moved to a new thread. Please review the LQ Rules. You might find the following useful; FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query. Just a few links to aid you to gaining some understanding to help you to solve the problem(s); 1 Linux Documentation Project 2 Rute Tutorial & Exposition 3 Linux Command Guide 4 Bash Beginners Guide 5 Bash Reference Manual 6 Advanced Bash-Scripting Guide 7 Linux Newbie Admin Guide 8 LinuxSelfHelp 9 Utimate Linux Newbie Guide 10 Linux Home Networking 11 Virtualization- Top 10 The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
|
All times are GMT -5. The time now is 12:23 PM. |