bug#70860: Add an option to remove filenames for wc util
Laurent Lyaudet <[email protected]> Fri, 17 Apr 2026 23:04:38 +0200
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <CAB1LBmu6J-WYpOZGEOucFrVrEpi+zpcqUMvu9JBKjO6R61BouA@mail.gmail.com> |
Le ven. 17 avr. 2026 à 22:01, Andreas Schwab <[email protected]> a écrit : > > On Apr 17 2026, Laurent Lyaudet wrote: > > >> versus: > > lines=$(wc -ln -- "${files[@]}") > > lines=$(wc -l -- "${files[@]}" | awk '{print $1}') > > -- > Andreas Schwab, [email protected] > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different." Short indeed, but yet another trick. Informatics is not about learning an encyclopedia of tricks if you want to drive on the highway instead of doing rally driving. lines=$(wc -l -- "${files[@]}" | awk '{print $1}') doesn't carry its meaning. This is a loss of brain time. You can learn tricks and win the Mathematics Olympiad, and still be clueless about Riemann Hypothesis.