LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

用 split 分割大文件

galeki posted @ 2007年10月10日 09:26 in Bash 和它的朋友们 with tags split 分割 , 2869 阅读

在 linux 下,使用 split 命令可以实现文件的分割,使用 cat 命令来完成分割文件的合并。

譬如,在下面 split 命令行中的 “12m” 表示分割后的每个文件为 12MB,“filename”  为待分割文件,分割后的文件自动命名为 xaa,xab,…

$ split -b 12m filename

 cat 命令可将这些分割后的文件合并为一个文件,并重定向到“largefile”文件中(largefile为自定的文件名)。

$ cat x* > largeflie   
  • 无匹配
嘻嘻 说:
2007年10月18日 06:00 刚试了下 真的呢 不过压缩文件合并后打不开,其他的还行 谢谢LZ推荐
Victsm 说:
2008年1月06日 02:44 可我试了一下,压缩文件合并后还是可以打开的阿。我试的是.tar.gz的压缩文件,不知是不是别的压缩格式会不可以。
galeki 说:
2008年1月06日 04:27 gz 和 bz2 的文件都可以打开~ :)
anonymous 说:
2023年9月23日 20:46

It is especially decent, though look into the tips during this home address. Bathroom Remodeling Orlando

anonymous 说:
2023年11月21日 18:54

You possess lifted an essential offspring..Blesss for using..I would want to study better latest transactions from this blog..preserve posting.. CPA Virtual Services

anonymous 说:
2023年12月24日 22:26

Very interesting information, worth recommending. However, I recommend this:  manzilmusk

anonymous 说:
2023年12月30日 15:09

Choose the Professional Tax Software Package That’s Right for Your New Tax Preparation Business. See for yourself how Tax Savage can help with our intuitive, cloud-based Tax Preparation Software for Professionals that can be used on any device at any time.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter