1 |
Francesco Turco wrote: |
2 |
> On Mon, Nov 11, 2019, at 14:00, Dale wrote: |
3 |
>> root@fireball / # cat /etc/make.conf | grep var |
4 |
>> PORT_LOGDIR=/var/log/portage/ |
5 |
>> source /var/lib/layman/make.conf |
6 |
>> DISTDIR="/var/cache/portage/distfiles/" |
7 |
>> PKGDIR="/var/cache/portage/packages" |
8 |
>> PORTDIR="/var/cache/portage/tree" |
9 |
> I'm sure you already know that, but that's an example of a useless use of cat. |
10 |
> |
11 |
> The following command is better: |
12 |
> # grep var /etc/make.conf |
13 |
> |
14 |
> :-) |
15 |
> |
16 |
|
17 |
I occasionally use grep that way, especially if I'm not sure what |
18 |
file/directory it is in. I use the -r option then tho. Handy for |
19 |
/etc/portage/ but no clue where the file might be exactly. ;-) |
20 |
|
21 |
Dale |
22 |
|
23 |
:-) :-) |