3 ms·
The origins of xxd seem to be a bit murky, as I've seen others say the same thing about xxd being available only if vim is installed, but I've never seen a Unix
by D9u 13y ago
The origins of xxd seem to be a bit murky, as I've seen others say the same thing about xxd being available only if vim is installed, but I've never seen a Unix system that didn't have vi(m) included.
$ man xxd | grep vi
Use xxd as a filter within an editor such as vim(1) to hexdump a region
Use xxd as a filter within an editor such as vim(1) to recover a binary
Use xxd as a filter within an editor such as vim(1) to recover one line
http://grail.cba.csuohio.edu/~somos/xxd.c http://grail.cba.csuohio.edu/~somos/xxd.c
From what I've been able to find, vim was released in 1991, and xxd has been around since at least 1990, whereas vi was written by Bill Joy in 1976. (according to Wikipedia)
Interesting bit of trivia, perhaps someone with a good memory can clear it up for us?
- clarry 13y agoThere are no hits for xxd on the Unix Tree (http://minnie.tuhs.org/cgi-bin/utree.pl http://minnie.tuhs.org/cgi-bin/utree.pl) so it's definitely not a traditional Unix tool. I'm sitting in front of a BSD system which includes nvi. I don't have xxd.
- Amadan 13y agoWell, at least on Debian it's in `vim-common` package. http://packages.debian.org/search?searchon=contents&keywords=xxd&mode=exactfilename&suite=stable&arch=any http://packages.debian.org/search?searchon=contents&keywords...
- vidarh 13y agoThere was a time when I, annoyed at being thrown into vi(m) whenever something spawned an editor, rather than setting the EDITOR environment variable on login, removed vi and replaced it with symlinks to emacs on the servers I managed. I'm a bit more tolerant of vi now, but just because I "never" see it courtesy of suitable EDITOR entries.