How AIX and UNIX admin use extended grep with example.
----------------------------------------------------------------------------
AIX and UNIX
Lets observe following example where AIX admin wanted to check path of storage disk.
#lspath |grep -w "hdisk2"
#lspath |grep -w "hdisk3"
#lspath |grep -w "hdisk4"
Instead of typing above single command for getting path details, AIX admin can use following extended grep.
#lspath |grep -E " hdisk2 |hdisk 3 |hdisk4"
above command will display path information for hdisk2 ,hdisk3 and hdisk4.
Thanks !!!!!
No comments:
Post a Comment