Linux questions and answers
I would like to grep fixed string "/usr" from the below command. When I used the command below it gave the output with other strings as well.Your help would be appreciated.
[root@lab~]# df -h | grep -wF "/usr" /dev/mapper/vg00-usr 5.0G 1.8G 3.0G 38 /usr /dev/mapper/vg00-test2 6.9G 69M 6.5G 2% /usr/data [root@lab ~]# |
You could try:
Code:
$ df -h | grep -wF "/usr$" |
maybe you wanted this?
Quote:
|
All times are GMT -5. The time now is 03:24 PM. |