[NBLUG/talk] Shell Script
Mark Street
jet at sonic.net
Mon Mar 8 10:40:04 PST 2004
Ian, tell your Intro To UNIX intstructor I gave up the answer.
I think Scott came the closest. Here is my lister script named - lister
I run it like so. lister /bin /home /tmp
#!/bin/bash
ls -l $* | less
On Monday 08 March 2004 08:10 am, Ian Sutherland wrote:
> This worked; #!/bin/bash
> ls /usr/bin /usr/X11R/bin | less
>
> Can it be done with $* or $@?
>
> Thanks, Ian
>
> On Sun, 2004-03-07 at 12:55, Scott Doty wrote:
> > On Sun, Mar 07, 2004 at 12:31:08PM -0800, E Frank Ball wrote:
> > > On Sun, Mar 07, 2004 at 10:53:25AM -0800, Ian Sutherland wrote:
> > > } How would you write a shell script to display a long list of all
> > > command } line arguments, one screenful at a time.
> > >
> > >
> > > ls /usr/bin /usr/X11R6/bin | less
> >
> > Perhaps he means arguments, such as:
> >
> > echo $* | less
> >
> > ?
> >
> > -Scott
> > _______________________________________________
> > talk mailing list
> > talk at nblug.org
> > http://nblug.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/mailman/listinfo/talk
--
Mark Street, D.C.
Red Hat Certified Engineer
Cert# 807302251406074
--
Key fingerprint = 3949 39E4 6317 7C3C 023E 2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc
More information about the talk
mailing list