[clug] sh scripts and =~ in csh

Andrew Janke a.janke at gmail.com
Tue Sep 11 02:32:31 GMT 2007


Just "sh-ifying" and old csh script that has been lying about and
cannot for the life of me remember the equivalent of this in sh...

set answer = "yes"
if ("$answer" =~ y*) then
   dostuff
endif

ie: what is the equivalent of =~?

ta


-- 
Andrew Janke   (a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883


More information about the linux mailing list