the sentence is just as follows:
diff <(cat .config | sort) <(cat .config.old | sort) | awk '/^>.*(=|Linux)/ { $1=""; print }'
without inserting the 'cat' and '*'(the part of awk),It seems like, the result of the command is the same as before.
Does the existence of the aboving 'cat'
and '*' (the part of awk)
I don’t quite follow. Do you mean the “.*”, so you replace .* with .?Yes. Based on the explanation of '*' in the gawk manual, it's
used to match zero/one/more times repeating of the preceding character which in turn doesn't match the default
diff printing mode( >for removing, <for adding).
It's not necessary to add '*' to '/^>.*(=|Linux)/'.
Linux'. But without the *, it will only match if there is that onecharacter between > and = or Linux. Acutally, diff adds a space after the >,
CONFIG_CC_IS_GCC=n
This, in my opinion, is a case of useless use of cat.Agree with that, i will attempt to add an replacing
`cat somefile | sort` can be replaced by sort file.
I dont quite follow. Do you mean the .*, so you replace .* with .?Yes. Based on the explanation of '*' in the gawk manual, it's
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:11:59 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,573 |