![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk, sed, grep...weird style | finalight | Shell Programming and Scripting | 13 | 05-19-2008 11:30 PM |
| Weird rsync behavior | scotbuff | OS X (Apple) | 2 | 12-24-2007 02:05 PM |
| Weird behavior on a Sun Fire V120 running solaris 10. | jsandova | SUN Solaris | 2 | 10-05-2007 03:17 PM |
| sed behavior on hp-ux | andy2000 | Shell Programming and Scripting | 8 | 05-04-2007 06:23 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
weird behavior of grep -P
I met a problem in using grep -P.
There is a text file, temp.txt, whose content is: dddd abc I ran the command: grep -P "\s*abc" temp.txt The result I expected is: abc But, the actual result is: dddd abc Could anyone tell me what is wrong? Thanks. |
| Forum Sponsor | ||
|
|