uname -rms
FreeBSD 9.1-RELEASE-p19 amd64
Although the xxd man page doesn't have the BSD label, and is from 1996, so I'm not sure if xxd only recently found its way into FBSD. This manual page documents xxd version 1.7
AUTHOR
(c) 1990-1997 by Juergen Weigert $ xxd
xxd: Command not found.
$ uname -rms
FreeBSD 9.1-RELEASE amd64
edit: fixed typo where I put xdd instead of xxd root@primus:/usr/ports # xxd
xxd: Command not found.
edit:It doesn't show up in my ports either:
root@primus:/usr/ports # make search name=xxd
Port: textproc/xxdiff
Moved:
Date: 2013-07-26
Reason: Has expired: Depends on Qt 3.x
Port: textproc/xxdiff-scripts
Moved:
Date: 2013-07-26
Reason: Has expired: Depends on Qt 3.x
Obviously xxdiff is a different (if you pardon the pun) utility, but xxd should show up in that list also.edit 2:
Another comment on here might explain why you're seeing xxd and I'm not: https://news.ycombinator.com/item?id=6360814 (it's not a separate utility, it's part of vim)
Since I didn't install vim on that box (just use basic vi), xxd wouldn't have installed as part of it. Where as in a jail on the same box, xxd does exist:
root@primus:/usr/ports # which vim xxd
vim: Command not found.
xxd: Command not found.
root@primus:/usr/ports # jexec 1 which vim xxd
/usr/local/bin/vim
/usr/local/bin/xxd $ whereis xxd
xxd: /usr/local/bin/xxd /usr/local/man/man1/xxd.1.gz
I don't see xxd anywhere in my ports tree.Haha... What a trip. This is the sort of thing that I'll end up wasting half a day trying to get an answer to.
$ grep xxd /usr/ports/editors/vim/pkg-plist
bin/xxd $ uname -rms
FreeBSD 9.1-RELEASE-p7 amd64
$ xxd -v
xxd V1.10 27oct98 by Juergen Weigert
Perhaps different builds have different things included?You're right, xxd is included with vim, but as an external program.
Vim provides this capability through the external program xxd, which is included by default in standard distributions of Vim.
My pedantic nature was hung up on the release dates of the respective programs, as xxd predates vim on Unix.