command: cat



f33dm3bits

Gold Member
Gold Supporter
Credits
14,994
cat command examples:

show the contents of /etc/passwd while searching for the user 'rob'
Code:
[[email protected] ~]# cat /etc/passwd|grep rob
rob:x:500:500::/home/rob:/bin/bash
Isn't that doing an unnecessary cat, you can just do it like this?
Code:
[[email protected] ~]# grep rob /etc/passwd
rob:x:500:500::/home/rob:/bin/bash
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
13,622
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top