Nathan Brink wrote: > There is an option for echo that removes the linefeed: > ohnobi...@ohnopublishing ~/html/anindex $ echo -n "How do I look in > hex?" |sigtool --hex-dump > 486f7720646f2049206c6f6f6b20696e206865783f > > There is no reason to, but I prefer echo to printf. Maybe because printf > processes escapes such as ``%s'' and ``%%'': > ohnobi...@ohnopublishing ~/html/anindex $ printf %%\\n > % > > Maybe you should include a warning note about how printf will eat > certain characters ;-). > echo -n is not standard. printf is. If you don't want it to eat characters use
$ printf %s "Foo%%Bar" Foo%%Bar Beware of spaces splitting the text to the second argument, though. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml