How can I test to see if a particular file contains a particular string anywhere within it, for example, I want to see if the filename contains .lock as the suffix. -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Could it ge sometthing as simple as grep (or egrep, fgrep, agrep) that your'e looking for?
>>>>>>>>>>>> Ursprungligt meddelande <<<<<<<<<<<<<<<<<<
"S.Toms" <tomas@primenet.com> skrev 2000-06-21, kl. 04.20.21 angående ämnet [SLE] ot: bash script:
How can I test to see if a particular file contains a particular string anywhere within it, for example, I want to see if the filename contains .lock as the suffix.
-- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
dahlqvist@sundsvall.mail.telia.com
-
tomas@primenet.com