[lug] Bash While Loop Error

Tkil tkil at scrye.com
Thu Nov 30 09:09:49 MST 2000


um.  why not just:

   find / -xdev -fstype ext2 -type f -print | \
      grep -vi game

doing the combination of "read" with an immediate "echo" should be the
same as just passing it straight through, no?

also, what's your motivation behind the "?n" weirdness with your print
statement?

finally, note that many linux boxes are set up with "locate" turned on
by default.  doing a "locate game" might be all you need to do, and it
should be much faster than doing the find.  hm... it doesn't do case-
insensitive searches, tho, so...

t.




More information about the LUG mailing list