Hello,
why the "grep -w" does not get only the line with "/nfs_l1"?
When I add space to "/nfs_l1 " it shows nothing:
thx in advance,
r.
why the "grep -w" does not get only the line with "/nfs_l1"?
Code:
$ echo "host /l1 /nfs_l1 someoptions\nhost /l1/l2 /nfs_l1/l2 someoptions"|grep -w "/nfs_l1"
host /l1 /nfs_l1 someoptions
host /l1/l2 /nfs_l1/l2 someoptions
$
When I add space to "/nfs_l1 " it shows nothing:
Code:
$ echo "host /l1 /nfs_l1 someoptions\nhost /l1/l2 /nfs_l1/l2 someoptions"|grep -w "/nfs_l1 "
$
thx in advance,
r.