[LUGOS] Vodenje projektov

Jure Koren jure at hehe.si
Mon Jul 24 18:04:11 CEST 2006


On Monday 24 July 2006 16:07, Jernej Simončič wrote:
> On Monday, July 24, 2006, 15:57:21, Linux User wrote:
> > Kako bi izgledala bash datoteka, ki bi mi izpisala, katere datoteke v
> > trenutnem direktoriju vsebujejo neko besedo ali niz?
> for f in *; do a="`grep "niz" "$f"`"; if [ "$a" ]; then echo $f; fi; done

grep -l "niz" *

-- 
Jure Koren, unix developer
Hehe d.o.o.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-list/attachments/20060724/44f91ec7/attachment.pgp


More information about the lugos-list mailing list