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 Rhinorhino 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
Joined
Nov 4, 2002
Messages
17
Location
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?
 
Hi

Hell. The above is completely wrong. This is the solution :
Code:
sort -m -T /some/dir fileA fileB fileC | split -l 1000000 [red]-[/red] prefix

Feherke.
 
Great, thank you very much feherke!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top