[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Usage of grep - Was: no .bash_hostory file was found in user home folder




On Sun, 2013-10-20 at 03:42 +0500, Muhammad Yousuf Khan wrote:
>         cat /etc/passwd | grep ykhan
>         ykhan:x:19000:19000:ykhan,,,:/home/ykhan:/bin/bash

[rocketmouse@archlinux ~]$ grep rocketmouse /etc/passwd
rocketmouse:x:1000:1000::/home/rocketmouse:/bin/bash

IOW if you use grep, then you don't need to use cat first.



Reply to: