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

sort | split

Status
Not open for further replies.

aj2taylo

Programmer
Nov 4, 2002
17
CA
Hello,

I'm trying to manage some large files and will need to use the unix sort and split command. I'm doing something like:

sort -m -T /some/dir fileA fileB fileC | split -l 1000000

The problem is I want to set a prefix for the split files, and can't figure out how to do this (when I append a prefix to the end of that command, it breaks).

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top