On Mon, 2010-03-15 at 12:32 -0600, Dave Smith wrote: > After it failed to turn on the relay, here's what I did to > investigate: > > echo -n $'\xff\x01\x00' > /tmp/foo.txt > hexdump -C /tmp/foo.txt > 0000000 ff 01 > > And ls -l confirms that the file is only 2 bytes in size (not 3 as I > expected). Is it not possible to write a 0x00 byte as the final byte > using echo?
$ printf '\xFF\x01\x00' > /tmp/foo $ od -t x1 /tmp/foo 0000000 ff 01 00 0000003 -- "XML is like violence: if it doesn't solve your problem, you aren't using enough of it." - Chris Maden /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */