In Bash
echo *
is almost equivalent to ls
.
You can do things like
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.
What is that limit?
Is the limit different between echo
the Bash command and /bin/echo
the program?
The shell does not limit this
You can see the limit for your system with (run on my 64bit linux:)
$ getconf ARG_MAX
2097152
See this very informational page http://www.in-ulm.de/~mascheck/various/argmax/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With