Re: Adding to the command line via variables

From: Greg Andrews (gerg_at_panix.com)
Date: 07/31/05


Date: Sun, 31 Jul 2005 00:06:08 +0000 (UTC)

cfajohnson@gmail.com writes:
>
> Unless you need a regular expression to select the files, there is
> no need for ls or grep. To print all the files beginning with
> "output", just use:
>
>lp -d printername output*
>

That's a good approach, but there is one caveat: Some of the SVR4
derived print systems (where the "lp" command came from) have limits
on the number of files that can be printed in each lp command.

On Solaris 2.3 through Solaris 99, the limit is something like 52 or 56.
I don't know if Solaris 10 has expanded that limit.

  -Greg

-- 
:::::::::::::  Greg Andrews  :::::  gerg@panix.com  :::::::::::::
     I have a map of the United States that's actual size.
				-- Steven Wright


Relevant Pages

  • Re: Adding to the command line via variables
    ... On 2005-07-30, Jeff Kloek wrote: ... I'm trying to figure out how I can build a command line using the ... Unless you need a regular expression to select the files, ... no need for ls or grep. ...
    (comp.unix.shell)
  • Re: subject line
    ... 'grep' name came from use in 'ed' and similar editors. ... The /RE/ is a regular expression pattern. ... Putting this all together the command reads, ...
    (comp.lang.ruby)
  • Re: MacTeX 2007 and documentation
    ... may be the most useful command available when doing searches at the ... will find every file on your system that has the text "memoir" on it, ... If locate generates 30 lines of text, where each line is a file, grep ... I need a Unix guru to chat to for half an hour or so to put me straight. ...
    (comp.text.tex)
  • Re: piping multiple selections to mv or cp and exclusion
    ... pipe to shell to execute each command statement ... Unix is indeed lifelong learning :-) ... and the regexp. ... back into the grep statement. ...
    (comp.unix.shell)
  • Re: MacTeX 2007 and documentation
    ... means you need expertise in your host operating system as well. ... locate memoir | grep pdf ... I'm not someone who lives at the command line, ...
    (comp.text.tex)