解决方法SPLIT 1000文件限制? [英] workaround for SPLIT 1000 file limit?

查看:308
本文介绍了解决方法SPLIT 1000文件限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些大文件分割成具体尺寸,更小的文件,用500-5000较小的文件输出。我使用拆分与-b标志,所以达到了拆分 1000,当我使用的是手动解决方法文件限制。是否有其他UNIX命令或Perl单行,将做到这一点?

I need to split a few large files into specifically sized smaller files, with 500-5000 smaller files output. I'm using split with a -b designation, so I'm using a manual workaround when reaching the split 1000 file limit. Is there a another UNIX command or Perl one-liner that will accomplish this?

推荐答案

您肯定1000文件限制?

Are you sure about the 1000 file limit?

原来拆分却没有这样的限制,而且也为GNU或BSD版本拆分的没有限制。也许你混淆了一些限制的后缀长度。在BSD,后缀开始于 .aaa 和锐意进取的方式 .zzz 这是超过17,000文件。

The original split had no such limit, and there's no limit for GNU or BSD version of split. Maybe you're confusing the suffix length with some sort of limit. On BSD, the suffix starts at .aaa and goes all of the way to .zzz which is over 17,000 files.

您可以使用 -a 标记来调整大小后缀如果三个字符的后缀是不够的。

You can use the -a flag to adjust the suffix size if the three character suffix isn't enough.

$ split -a 5 $file

这篇关于解决方法SPLIT 1000文件限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆