[LUGOS] Vodenje projektov

Jernej Simončič jernej.listsonly at ena.si
Mon Jul 24 16:07:00 CEST 2006


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

-- 
< Jernej Simončič ><><><><>< http://deepthought.ena.si/ >

That which we call sin in others is experiment for us.
       -- Emerson's Insight



More information about the lugos-list mailing list