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

Breaking Down a File - 450 mb 1

Status
Not open for further replies.

nread

Technical User
Oct 31, 2001
58
0
0
GB
I have a 450mb file which i'm unable to FTP across to a common user area on a Windows NT platform......

The question i am asking is there anyway to slice the file up into a number of smaller files so i'd be able to FTP...?

Or is there some other method....

Thanks in advance from someone who knows very little abount UNIX.....!
 
You can split your file in smallest files with the split command.

Example.

split -b 10m big small

This command split the file "big" in smallest files of 10 megabytes "smallaa", "smallab", ... "smallbs".

To recombine them back into the original file :

cat small?? > big
rm small??

or (to minimise space used)

rm -f big
for sf in small??
do
cat ${sf} >> big
rm ${f}
done
Jean Pierre.
 
Thanks.... Just what i needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top