JaoudeStudios.com

Open Source is the road ahead!
It is currently Thu Sep 09, 2010 4:56 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Bash script - Raid Checker
PostPosted: Wed Jul 30, 2008 9:40 am 
Offline
Site Admin
User avatar

Joined: Wed Jul 02, 2008 7:54 pm
Posts: 596
Location: Surrey
I am trying to write a bash script to check my raid status and email if there is any change. But I am stuck on the RegEx...

Code:
if [ "$CURRENTRAID" = [a-zA-Z0-9]*[UU][a-zA-Z0-9]*]  ]

I want to check if UU or preferably check [UU] exists in $CURRENTRAID

Can someone help?

_________________
JaoudeStudios.com :: Eddie Jaoude :: Geek by nature, Linux by choice
Forum JaoudeStudios - php, mysql, xhtml, css, javascript, jquery, svn subversion, linux, lamp, W3C
Online Agile Task board
Open Source is the road ahead!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group