Re: comparing string with regular expression using test command in unix

2006-02-22 Thread Phillip Susi
Or grep. Paul Eggert wrote: N Gandhi Raja [EMAIL PROTECTED] writes: Can we use test command in UNIX to compare a *string *with the *regular expression*? No. You might look at 'expr' or 'awk' instead. ___ Bug-coreutils mailing list

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Eric Blake
Hi, I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Can we use test command in UNIX to compare a *string *with the *regular expression*? if so please provide an example for that. This sort of question

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Andreas Schwab
N Gandhi Raja [EMAIL PROTECTED] writes: I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Yes, with expr. $ info coreutils 'String expressions' Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Mike Frysinger
On Friday 17 February 2006 05:23, N Gandhi Raja wrote: I want to compare a variable holding *string* with the *regular expression *. Is it possible to do in unix with a single command? Can we use test command in UNIX to compare a *string *with the *regular expression*? if so please provide an

Re: comparing string with regular expression using test command in unix

2006-02-20 Thread Paul Eggert
N Gandhi Raja [EMAIL PROTECTED] writes: Can we use test command in UNIX to compare a *string *with the *regular expression*? No. You might look at 'expr' or 'awk' instead. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org