Search code examples
vimxxd

xxd without line number but keep character encoding


I know that using -p can output in plain hexdump style, but I want to keep the character encoding in the righthand column and separation of the output. Does xxp have any options to do this?


Solution

  • It doesn't but you can use additional tools:

    xxd file | cut -d' ' -f 2-
    

    Use cut to split by spaces and skip the 1st field.