grep for regular expression in Solaris

Hello,

I want to regursively grep for a regular expression in SunOS 5.8 but couldn't do that. There is no equivalent option as --perl-regexp in Solaris 5.8

can anyone help me on that

Thanks,
nlrreddyAsked:
Who is Participating?
 
ozoCommented:
egrep -R 'abc[a-zA-Z0-9]{10}_[a-zA-Z0-9]{4}' .
0
 
DalHorinekCommented:
What about using this?

http://www.pcre.org/
0
 
ozoCommented:
does egrep work?  what is the expression?
can you use a perl command instead?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
omarfaridCommented:
can you elaborate on what you want to do? can you give example?
0
 
nlrreddyAuthor Commented:
below is the regular expression that I want to grep in all files recursively

abc[a-zA-Z0-9]{10}_[a-zA-Z0-9]{4}

with the above regular expression, can I find files with the above tag?
0
 
shajithchandranCommented:
you can use simple grep with -R option too
0
 
Mohan ShivaiahCommented:
sed -n '/abc\[a-zA-Z0-9\]{10}_\[a-zA-Z0-9\]{4}/,$ p' file_name > output_file.out
0
 
nlrreddyAuthor Commented:
Although the solution is not complete it helped me get ideas on this
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.