Skip to content

Instantly share code, notes, and snippets.

@xieyunzi
Last active September 2, 2017 15:47
Show Gist options
  • Save xieyunzi/af0618cd3750685beb1338367dfbedb9 to your computer and use it in GitHub Desktop.
Save xieyunzi/af0618cd3750685beb1338367dfbedb9 to your computer and use it in GitHub Desktop.

Use script /tmp/output to start recording in a new shell, then type your commands and look in the /tmp/output file, e.g. with an editor or cat -vet. Type exit to the shell to exit the recording.

# https://unix.stackexchange.com/questions/226412/how-can-i-get-the-raw-formatting-output-of-commands
env TERM=xterm-color CLICOLOR_FORCE=1 ls -G | hexdump -C | head -10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment