Dear Slackers,
I decided lately that I now have enough experience using GNU/Linux to let myself dig further inside my system, I started learning shell scripting.
So far so good except that every time I try using interval expression with grep I get no match. For instance:
sh-3.1$ echo abababccccccd | grep c\{3\}
sh-3.1$
I expect this expression to be true since it matches from characters 7 to 9.
With sed I do not get those problems:
sh-3.1$ echo abc123ABC | sed -e 's;[[:lower:]]\{3\};$$$;'
$$$123ABC
I am actually puzzled by grep's behaviour, is it actually supposed to be compatible with interval expression? I can't understand why it wouldn't but I might have missed something...
Any suggestions welcome
