Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] wiki page(kernel/upgrade) command confusion: 'cat' and 'awk'
Date: Fri, 14 Jan 2022 12:19:22
Message-Id: YeFqMPdoMySEj5Vb@moby
In Reply to: [gentoo-user] wiki page(kernel/upgrade) command confusion: 'cat' and 'awk' by russian sky
1 Am Fri, Jan 14, 2022 at 10:05:54AM +0000 schrieb russian sky:
2 > the sentence is just as follows:
3 >
4 > diff <(cat .config | sort) <(cat .config.old | sort) | awk '/^>.*(=|Linux)/ { $1=""; print }'
5 >
6 > without inserting the 'cat' and '*'(the part of awk),It seems like, the result of the command is the same as before.
7 >
8 >
9 > Does the existence of the aboving 'cat'
10
11 This, in my opinion, is a case of “useless use of cat”.
12 `cat somefile | sort` can be replaced by “sort file”.
13
14 > and '*' (the part of awk)
15
16 I don’t quite follow. Do you mean the “.*”, so you replace .* with .?
17
18 --
19 Grüße | Greetings | Qapla’
20 Please do not share anything from, with or about me on any social network.
21
22 Fat stains become like new if they are regularly treated with butter.

Attachments

File name MIME type
signature.asc application/pgp-signature