How to make âxxdâ place spaces between the hex values?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am using the following command to read the output of one terminal from another terminal:
xxd -p /dev/pts/0
But there is no spaces between the hex values, for example I get something like this:
61626162
Instead of this:
61 62 61 62
linux terminal xxd
add a comment |Â
up vote
1
down vote
favorite
I am using the following command to read the output of one terminal from another terminal:
xxd -p /dev/pts/0
But there is no spaces between the hex values, for example I get something like this:
61626162
Instead of this:
61 62 61 62
linux terminal xxd
1
How aboutod -An -vtx1
?
â cuonglm
Nov 20 '17 at 3:56
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am using the following command to read the output of one terminal from another terminal:
xxd -p /dev/pts/0
But there is no spaces between the hex values, for example I get something like this:
61626162
Instead of this:
61 62 61 62
linux terminal xxd
I am using the following command to read the output of one terminal from another terminal:
xxd -p /dev/pts/0
But there is no spaces between the hex values, for example I get something like this:
61626162
Instead of this:
61 62 61 62
linux terminal xxd
asked Nov 20 '17 at 3:36
Tom
286
286
1
How aboutod -An -vtx1
?
â cuonglm
Nov 20 '17 at 3:56
add a comment |Â
1
How aboutod -An -vtx1
?
â cuonglm
Nov 20 '17 at 3:56
1
1
How about
od -An -vtx1
?â cuonglm
Nov 20 '17 at 3:56
How about
od -An -vtx1
?â cuonglm
Nov 20 '17 at 3:56
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
If you're open to bringing in other tools then one possibility is to send output through sed
:
xxd -p /dev/pts/0 | sed 's/../& /g'
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If you're open to bringing in other tools then one possibility is to send output through sed
:
xxd -p /dev/pts/0 | sed 's/../& /g'
add a comment |Â
up vote
0
down vote
If you're open to bringing in other tools then one possibility is to send output through sed
:
xxd -p /dev/pts/0 | sed 's/../& /g'
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If you're open to bringing in other tools then one possibility is to send output through sed
:
xxd -p /dev/pts/0 | sed 's/../& /g'
If you're open to bringing in other tools then one possibility is to send output through sed
:
xxd -p /dev/pts/0 | sed 's/../& /g'
answered Nov 20 '17 at 3:56
B Layer
3,9241525
3,9241525
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405701%2fhow-to-make-xxd-place-spaces-between-the-hex-values%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
How about
od -An -vtx1
?â cuonglm
Nov 20 '17 at 3:56