This link has been bookmarked by 71 people . It was first bookmarked on 07 Oct 2008, by Alberto Fernandez.
-
06 May 16
-
31 Dec 15
-
20 Jan 15
-
We now discuss egrep syntax as opposed to grep syntax. Ironically, despite the origin of the name (extended), egrep actually has less functionality as it is designed for compatibility with the traditional egrep. A better way to do an extended "grep" is to use
grep -Ewhich uses extended regular expression syntax without loss of functionality.
-
-
18 Dec 14
-
08 Nov 14
-
18 Sep 13
-
04 Aug 13
-
10 Jul 13
-
"." matches exactly one character.
-
the expression ".*" matches any string,
-
An expression surrounded by "escaped" parentheses is treated by a single character.
-
The $ character matches the end of the line. The ^ character matches the beginning of the line.
-
The expression where n is a number, matches the contents of the n'th set of parentheses in the expression
-
The following characters are considered special and need to be "escaped":
? \ . [ ] ^ $
-
Most special characters lose their meaning inside square brackets
-
single quotes are the safest to use, because they protect your regular expression from the shell.
-
When should you use single quotes ? the answer is this: if you want to use shell variables, you need double quotes.
-
-
24 Mar 13
-
28 Oct 12
-
16 Apr 12
-
20 Aug 11
-
28 Jun 11
-
08 Apr 11
-
06 Apr 11
-
05 Jan 11
-
24 Nov 10
-
19 Nov 10
-
10 Nov 10
federicodisanteThis or That: matching one of two strings
(come individuare le righe con una parola o un altra, cioe' con 2 parole!!! Chiaro, no?) -
03 Nov 10
-
13 Oct 10
-
29 Sep 10
-
08 Apr 10
-
15 Mar 10
-
28 Jan 10
-
02 Dec 09
-
19 Nov 09
-
08 Sep 09
-
16 Jun 09
-
11 May 09
-
01 Apr 09
-
25 Mar 09
-
24 Mar 09
-
11 Mar 09
-
19 Feb 09
-
17 Sep 08
-
10 Aug 08
-
28 Jun 08
-
25 Jun 08
-
27 May 08
-
19 Mar 08
-
14 Mar 08
-
23 Jan 08
-
19 Sep 07
-
12 Sep 07
-
01 Aug 07
-
12 Jan 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.