regep prblm


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting regep prblm
# 1  
Old 08-12-2011
regep prblm

hi
please help in this case

Code:
 
$ echo `expr match  deepak "*" `
expr: syntax error
 
 
$ echo `expr match  deepak '*' `
expr: syntax error
 
$ echo `expr match  deepak * `
expr: syntax error
 
$ echo `expr match  deepak "d*" `
1

# 2  
Old 08-12-2011
Hi,

Cant understand what you trying to do.

If you want to match all characters
then
Code:
$ echo `expr match  deepak '.*' `

use code tags Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

required the script for this prblm

:confused:Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: 2. Relevant commands, code, scripts, algorithms: 3. The attempts at a solution... (0 Replies)
Discussion started by: SANKALP
0 Replies
Login or Register to Ask a Question