# Note: has a limit of like 10k or something, I forget
function bin2hex --description ''
if test (count $argv) -ne 1
echo "usage: $(status current-command) [path of file to hexdump]"
return 1
end
hexdump -v -e '1/1 "%02x"' "$argv[1]" # ex. -> 48656c6c6f20...
end
|