Hello,

I upgraded the wc tool. I added two commands :

- "-n", "--noname". This command don't print the filename

- "-s", "--nospace". This command don't use the "human
readable function" and don't print spaces before each
number.

These evolutions are useful for me especially if I would like
to use wc in "if condition" (shell script).

Exemple :

if [ `wc -l -n foo.txt` = 1 ]
then
echo "here"
fi

I don't known the rule about versioning, evolution, publication
and licence.

If you could read and test my some modifications. I thank you !

I apologize for my English, I'm French ;-)

Herv� Seignole
"Vive GNU, GNU/Linux et l'open source"
mail : [EMAIL PROTECTED]

Attachment: wc.tar.bz2
Description: BZip2 compressed data

_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to