Quote:
|
Originally Posted by shereenmotor
Code:
egrep '^a\{2,6\}$' testexpr4D
|
shereenmotor, that solution is pretty close, but no cigar !
You are mixing the syntax's of sed and [e]grep.
If it were sed, it would be
Code:
sed -n -e "/^a\{2,6\}$/p" filename
If it were grep it would be
Code:
egrep '^a{2,6}$' filename