Sometimes you can work around that. The trick is to split the command line into pieces with- and use a to combine the outputs. For example, I rewrote the previous command like this:
The first command prints the files in directories whose names start with "a" through "f," and so on.
How did I decide where to split? There's no magic formula. The number of pieces you'll need and the way you divide them will depend on how many directories and files you're trying to match - and your version of UNIX. Do it by experiment. A dummy command like true that ignores its arguments is good for this. In the example above, I first tried splitting the arguments in half. Then I split them more. I did the same for other chunks until the shell was happy with all of them:
This trick works fine for commands like pr
that make regular output
that is consistent whether you run separate chunks of files or do all
at the same time.
Some commands start each listing with a separate heading - for instance,