Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple files to one and copying to a folder..

Status
Not open for further replies.

kumariaru

IS-IT--Management
Mar 9, 2006
61
AU
Good Morning All,
I have to write a script to concatenate multiple files to a single and move the file to other folder.

We mayget a single file or two files or more..it depends..I have to put them all file to a single file and move to a new folder.All files will be in same structure(mean same number of columns)..

Can we do this through script....

Ex:
File1
File2
.
.
.
Filen

to TEST1.txt

something like cat file* > TEST1.txt ..
and then move the file to new folder...

Thanks in advance..
Kumari



 
In one operation like this maby?
Code:
cat file* > /path/to/newfile.txt && rm file*
:)
 
Uhh,yes Sorry about that Sir.
Guess my eger to help is stronger than my reading.
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top