The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Unix grep/test command
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Unix grep/test command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
10-09-2007
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
On Solaris you can use:
Code:
echo "12345678" | /usr/xpg4/bin/grep -Eq "^[0-9]{8}$"
In any case, you must use a tool which supports extended regular expressions to use the above regex.
robotronic
View Public Profile
Find all posts by robotronic