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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I sort files and cat the contents into one file?

Status
Not open for further replies.

tpbjr

MIS
Oct 8, 2004
120
US
Hi All,

I currently know use this command line to catenate several files into one. Now I have to make sure the files are in order by date before put the information into the output file. Then on another process I need to put the files in order by name. How do I sort by date and file name for two different process.

This is what I currently have:
cat spca* > outputSPCA.dat

This does not guarentee me the two different orders I need for my two different process.

Thanks for all your help.



Thank you for all your help

Tom
 
man sort

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top