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!

Command line: split command

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:

split -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?
 
Kevin, a valid point, however, I would benefit from learning about the *nix split, and as the saying goes, "the more we know, the more we can help"*


*"who said that", "I think it was Abbott & Costello" ... "definitely depends on who asks first", "No he's on second"

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
That's cool Paul, I understand, but the OP will probably get a quicker answer in the unix forum. Hopefully if they ask over there they can post the answer over here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top