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
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
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
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
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