The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
test egrep not found
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
test egrep not found
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-16-2008
alamitab
Registered User
Join Date: Jan 2007
Posts: 24
Code:
#! /usr/bin/ksh egrep -i "string" file_name if [ $? -eq 0 ] then echo "Found" else return 2 fi
alamitab
View Public Profile
Find all posts by alamitab