![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regex in grep to match all lines ending with a double quote (") OR a single quote (') | NanJ | Shell Programming and Scripting | 6 | 08-26-2009 10:28 AM |
| how to print single quote in awk | gauravgoel | UNIX for Dummies Questions & Answers | 6 | 08-20-2008 05:48 PM |
| escaping single quote | javeed7 | Shell Programming and Scripting | 3 | 04-02-2008 06:36 AM |
| single quote | dreams5617 | Shell Programming and Scripting | 2 | 12-01-2007 03:37 AM |
| Replacing a single quote | rjsha1 | Shell Programming and Scripting | 3 | 12-23-2005 10:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
grep : having trouble with a single quote
Hi,
I search for the string below which contains a single quote, some text '/home/myuser in the file myfile.txt as another user with the grep command as follows su - myuser -c "grep 'some text \'/home/myuser' myfile.txt" I also tried using two backslashes su - myuser -c "grep 'some text \\'/home/myuser' myfile.txt" but to no avail, I still get Unmatched '. Does anyone have a solution for this silly problem? Thanks, C |
|
||||
|
Hi tyler,
I found out the answer if anyone is interested
Thanks, C |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|