On my machine-A (oslevel-5300-08) I can display the file content in HEX format through VI editor using :%!xxd but on other machine-B (oslevel - 5300-06) , I get error as "sh: xxd: not found."
machine-A:
$ cat demo.txt
Hello World !
I can display the file content in HEX format through VI editor using :%!xxd
$ vi demo.txt
"demo.txt" 1 line, 14 characters
0000000: 4865 6c6c 6f20 576f 726c 6420 210a Hello World !.
machine-B
sh: xxd: not found.
can anyone tell me what is problem and how to fix this?
# which xxd
which: 0652-141 There is no xxd in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin /usr/local/bin /bin.
so how and from I can install xxd? if you can give some details it will b gr8.
Check if the xxd exists on machine B in the same location:
# ls -l /@sys/nosupp/bin/xxd
If yes, add "/@sys/nosupp/bin" to the PATH variable in .profile of the user on machine B. Currently this directory is not part of PATH (based on the output you pasted).
If no, you need to copy xxd to machine B (assuming its statically linked exe) or install it.
You can also try to do a full blown recursive search for xxd on machine B (better to do this as root as other users may not have read perms on all directories: