Francesco Turco wrote:
> On Mon, Nov 11, 2019, at 14:00, Dale wrote:
>> root@fireball / # cat /etc/make.conf | grep var
>> PORT_LOGDIR=/var/log/portage/
>> source /var/lib/layman/make.conf
>> DISTDIR="/var/cache/portage/distfiles/"
>> PKGDIR="/var/cache/portage/packages"
>> PORTDIR="/var/cache/portage/tree"
> I'm sure you already know that, but that's an example of a useless use of cat.
>
> The following command is better:
> # grep var /etc/make.conf
>
> :-)
>

I occasionally use grep that way, especially if I'm not sure what
file/directory it is in.  I use the -r option then tho.  Handy for
/etc/portage/ but no clue where the file might be exactly.  ;-)

Dale

:-)  :-) 

Reply via email to