Re: [SLE] Bash scripting help



On Sat, 2005-12-03 at 10:11, Jim Cunning wrote:
> On Sat, 2005-12-03 at 09:55, David Crouch wrote:
> > HI all.
> >
> > I used to know how to do this, but apparently I've forgotten :( I know
> > I can use a for loop to process all the files in a directory, but I
> > can't for the life of me remember how to do it. I have a bunch of
> > archived files that I want to unarchive. I've tried for I in *rar:do
> > 'unrar x $I.rar':done, but that doesn't work and I can't seem to find
> > the right man page with the syntax. Any help?
>
> for f in *rar; do unrar x $f; done
>
> See 'man bash' then enter '/^\s*for/ and n (next) until you find the
Minor problem: ^ omit the trailing / and hit
enter instead.

> explanation you want.

--
Jim Cunning <jcunning@xxxxxxxxxxxxxxx>


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [SLE] Thread Hijacking Protocol
    ... Meanwhile they're wasting more time on perfect formatting than they ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • [SLE] Juvenile antics on the list
    ... Check the headers for your unsubscription address For additional commands ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: [SLE] what do you back-up and how?
    ... Years ago, with Windows, I messed with drive image ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • AW: [SLE] Suse 10 Installation impossible ;) FSC Celsius mobile H notebook
    ... The Labour party has changed their emblem from a rose to a condom as ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • [SLE] I have lost X, SUSE 10.1 x86_64
    ... exception of the printer, epson 925, and it only part of the time. ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)