shell help: check for regex in variable
Neil Watson
tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org
Mon Mar 12 15:38:28 UTC 2007
How can I check that a variable ends in .pid?
loose example
pidfile="/var/run/myproc.pid"
if [[ $pidfile contains ".*\.pid$" ]]
Is this possible?
--
Neil Watson | Debian Linux
System Administrator | Uptime 13 days
http://watson-wilson.ca
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list