Re: Bug#469525: coreutils: [wc] RFC: Add option --no-filename

2008-03-06 Thread Andreas Schwab
Pádraig Brady <[EMAIL PROTECTED]> writes: > I wonder could we go one step further and suppress the filename > also like grep does when passed a single file? That would require adding an option to be comptible with POSIX. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Produ

Re: Bug#469525: coreutils: [wc] RFC: Add option --no-filename

2008-03-06 Thread Pádraig Brady
Jari Aalto wrote: > Package: coreutils > Version: 6.10-3 > Severity: wishlist > > > Description: > > $ wc -l README > 200 README > > This is fine for interactive use, but not convenient in shell scripts, Options are bad because of the extra complexity presented to users. Currently

Re: Bug#469525: coreutils: [wc] RFC: Add option --no-filename

2008-03-05 Thread Bob Proulx
The bug-coreutils mailing list was apparently BCC'd on this bug report. As such replies will go to the BTS but not to the the mailing list. For those who read the bug-coreutils mailing list archive later here is a link to the BTS mail archive so that the replies can be viewed. http://bugs.debi

Bug#469525: coreutils: [wc] RFC: Add option --no-filename

2008-03-05 Thread Jari Aalto
Package: coreutils Version: 6.10-3 Severity: wishlist Description: $ wc -l README 200 README This is fine for interactive use, but not convenient in shell scripts, because the outpur cannot be easily handles. Many times only the integer value is needed: lines=$(wc -l $f