Le ven. 17 avr. 2026 à 19:15, Paul Eggert <[email protected]> a écrit : > > On 2026-04-17 10:03, Laurent Lyaudet wrote: > > >> for file in *; do > >> lines=$(wc -l <"$file") && > >> printf '"%s" contains %d lines\n' "$file" $lines > >> done > > > > VS > > > > lines=$(wc -ln "$file") > > Not a fair comparison. The fair comparison is: > > lines=$(wc -ln "$file") > > versus: > > lines=$(wc -l <"$file") > Still not a fair comparison. A fair comparison can be: > >> for file in "${files[@]}"; do > >> lines=$(wc -l <"$file") && > >> printf '"%s" contains %d lines\n' "$file" $lines > >> done versus: lines=$(wc -ln -- "${files[@]}")
- bug#70860: Add an option to remove filenames for wc util Laurent Lyaudet
- bug#70860: Add an option to remove filenames for wc u... Chris Elvidge
- bug#70860: Add an option to remove filenames for ... Laurent Lyaudet
- bug#70860: Add an option to remove filenames ... Laurent Lyaudet
- bug#70860: Add an option to remove filenames ... Chris Elvidge
- bug#70860: Add an option to remove filena... Laurent Lyaudet
- bug#70860: Add an option to remove f... Paul Eggert
- bug#70860: Add an option to remo... Laurent Lyaudet
- bug#70860: Add an option to ... Paul Eggert
- bug#70860: Add an option to ... Laurent Lyaudet
- bug#70860: Add an option to ... Paul Eggert
- bug#70860: Add an option to ... Laurent Lyaudet
- bug#70860: Add an option to ... Andreas Schwab
- bug#70860: Add an option to ... Laurent Lyaudet
