From: Josh Cheek Date: 2010-12-11T15:06:54+09:00 Subject: Re: Regular expression help --00163630fa19000ec104971c47c7 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Dec 10, 2010 at 9:58 PM, Rajesh M. wrote: > Hi list, > > I need help in putting a regular expression, regular expression should > find either of these four words: > > shut reb sync init > > I am trying to find either shutdown or reboot or sync or init, for Linux > it works fine if I put crontab -l |grep -iP "(shut|init|sync|reb)" but > in Solaris it is failing because it doesn't have regular expression > option which is -P. > > So I am trying to make this through regular expression. > > > > Thanks in advance > > -- > Posted via http://www.ruby-forum.com/. > > How about crontab -l | grep -i -e shut -e init -e sync -e reb --00163630fa19000ec104971c47c7--