bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trailing newline in wc


From: Paul Eggert
Subject: Re: trailing newline in wc
Date: 01 Jul 2003 10:06:48 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

That example doesn't show the need for a new 'wc' option.  Instead of this:

grep $x error_log | wc -l | tr -d '\n'; echo " : $x"

you can write this:

echo "$(grep -c $x error_log): $x"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]