2

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
1
  • 1
    How about od -An -vtx1?
    – cuonglm
    Commented Nov 20, 2017 at 3:56

1 Answer 1

2

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'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .