长度的限制*的在bash输出? [英] Limits of length for the output of * in bash?

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

问题描述

在bash

echo *

几乎等同于 LS

您可以做的事情一样。

echo */*-out/*.html > all-my-html-files-on-one-line

由于 * 命令行参数,然后应该有长度的限制。

Since * is a command line argument then there should be a limit on the length.

那是什么限制?

时的限制不同的回声 bash命令和 /斌/回声程序?

Is the limit different between echo the Bash command and /bin/echo the program?

推荐答案

shell是不限制这种

The shell is does not limit this

您可以看到限制你的系统(在我的64位Linux的运行:)

You can see the limit for your system with (run on my 64bit linux:)

$ getconf ARG_MAX
2097152

请参阅此信息很页面<一个href=\"http://www.in-ulm.de/~mascheck/various/argmax/\">http://www.in-ulm.de/~mascheck/various/argmax/

这篇关于长度的限制*的在bash输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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