bash query
dave selby
dave6502 at googlemail.com
Tue Jun 12 06:38:23 UTC 2007
On 11/06/07, User Iam <vramnum10 at gmail.com> wrote:
>
>
> On 6/11/07, dave selby <dave6502 at googlemail.com> wrote:
> > Hi all,
> >
> > I have a bash script that scans a dir with ...
> >
> > for sourcedir in KDE/*
> >
> > this cycles through everything in KDE/ - however i need to skip
> > certain file names. Anybody know how to implement this ? - my bash is
> > somewhat rusty :)
> >
> > Cheers
> >
> > dave
>
>
> Is this kinda what you want
>
> @@@@@@@@@@@@@@@@
> #! /bin/bash
>
> for i in $( ls /etc | grep ^z -v ); # everything but stuff with z
> do
> echo file: $i
> done
>
Thats exactly what I need - many thanks
Dave :)
>
> @@@@@@@@@@@@@@@@@@@@@
>
> I used grep as a fitler to rid everything I didn't want...
> <in this case z>
> HTH
>
> Lamsok
>
>
>
>
>
> > --
> >
> > The unavoidable price of reliability is simplicity.
> >
> > -- C.A.R. Hoare
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
--
The unavoidable price of reliability is simplicity.
-- C.A.R. Hoare
More information about the ubuntu-users
mailing list