Skip to main content
update quote of man page since typos were fixed, add link to man page
Source Link
Matthias Braun
  • 8.8k
  • 8
  • 51
  • 63

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p'-p and '-c'-c with value 0 as said in the man pageman page:

-c cols | -cols cols

Format cols octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256. No maxmimum [sic]No maximum for -ps. With -ps, 0 results in one long line of output.

forFor example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols

Format cols octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256. No maxmimum [sic] for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use -p and -c with value 0 as said in the man page:

-c cols | -cols cols

Format cols octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256. No maximum for -ps. With -ps, 0 results in one long line of output.

For example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a
note that it's a recent addition. Improved formatting.
Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

With xxd version 2022-01-14 (coming with vim 8.2.4088vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols
      Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.  No maxmimum for -ps. With -ps, 0 results in one long line of output.

-c cols | -cols cols

Format cols octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256. No maxmimum [sic] for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols
      Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.  No maxmimum for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols

Format cols octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256. No maxmimum [sic] for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a
note that it's a recent addition.
Source Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

You need toWith xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols
      Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.  No maxmimum for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

You need to use '-p' and '-c' with value 0 as said in man page:

-c cols | -cols cols
      Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.  No maxmimum for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a

With xxd version 2022-01-14 (coming with vim 8.2.4088) or newer, you can now use '-p' and '-c' with value 0 as said in the man page:

-c cols | -cols cols
      Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.  No maxmimum for -ps. With -ps, 0 results in one long line of output.

for example:

$ echo "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | xxd -p -c0 
4c6f72656d20497073756d2069732073696d706c792064756d6d792074657874206f6620746865207072696e74696e6720616e64207479706573657474696e6720696e6475737472792e0a
Source Link
Loading