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!

split

Status
Not open for further replies.

malpa

Technical User
Feb 8, 2004
122
CO
Thanks for your assistant

I want to split a file with the split command. When i use this command the files have the extension xxx. I want to modify this result with the extension p01,p02,p03,p04 ....

I did it with dd command. but i would like to do this with split command

for
do
dd if= of= bs= count=
mv
dd if= of= bs= skip=
mv
done


split -b 2240000 file1 file2

file2.p01
file2.p02
.
.
.
.

Thanks

 

Unless the -a option in split command is used, the suffix for all result files will be in the sequence aa through zz.

You cannot change this.





----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thanks for your assistant.

That´s right.

Thanks

malpa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top