Try Oreilly's publications.
dunno the names,though...
but the author's name is enough...


Corisen wrote:

> thank you. any recommendation on books or website for a newbie to start
> shell scripting?
>
> ----- Original Message -----
> From: Aravind Sadagopan <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 21, 2000 3:08 PM
> Subject: Re: shell script
>
> > >
> >
> > VARIABLE=`grep .....`
> > Take care of the quotes.. its the one present before "1" on an English
> keyboard
> >
> >
> >
> > Cheers
> > Aravind S
> >
> > > Hi, one more question: how can i assign the result from grep or awk to a
> > > variable in shell script? Thanks.
> > >
> > > ----- Original Message -----
> > > From: Aravind Sadagopan <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, November 21, 2000 2:36 PM
> > > Subject: Re: shell script
> > >
> > > > you can use xargs to pass the output to rm..I will be like
> > > > ldapsearch uid=userabc homedirectory | grep homedirectory | awk -F=
> > > '{print
> > > >  $2;}| xargs rm -Rf
> > > >
> > > > Cheers
> > > > Aravind S
> > > >
> > > > Vineeta wrote:
> > > >
> > > > > What is the output of /home/userabc like?
> > > > > Does it contain sub-directories which u want to be removed?
> > > > > give me a sample and i'll help you out.
> > > > >
> > > > > Cheers,
> > > > > Vineeta
> > > > >
> > > > > Corisen wrote:
> > > > >
> > > > > > i'm writing a simple shell script to automate removal of
> directories.
> > > > > >
> > > > > > i've managed to extract the user home directory from LDAP server
> using
> > > > > > "ldapsearch uid=userabc homedirectory | grep homedirectory |
> awk -F=
> > > '{print
> > > > > > $2;}'".
> > > > > >
> > > > > > the above command result is "/home/userabc"
> > > > > >
> > > > > > pls advise how i can pass the result of "/home/userabe" to
> "rm -f -r"
> > > to
> > > > > > delete the directory?
> > > > > >
> > > > > > thanks.
> > > > > >
> > > > > > _______________________________________________
> > > > > > Redhat-list mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > > > >
> > > > > _______________________________________________
> > > > > Redhat-list mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > > >
> > > > --
> > > > Living on Earth is expensive, but it does include a free trip
> > > > round the sun
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Redhat-list mailing list
> > > > [EMAIL PROTECTED]
> > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> > > _______________________________________________
> > > Redhat-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> > --
> > Living on Earth is expensive, but it does include a free trip
> > round the sun
> >
> >
> >
> >
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to