Skip to content

Instantly share code, notes, and snippets.

@garywill
Created January 9, 2025 01:16
Show Gist options
  • Select an option

  • Save garywill/b59167f6eb60f58998d0faacb4f6cce3 to your computer and use it in GitHub Desktop.

Select an option

Save garywill/b59167f6eb60f58998d0faacb4f6cce3 to your computer and use it in GitHub Desktop.
Print text file correctly, which 0x00 is newline. '\n'在某种文本文件里被用0x00表示了,正确打印出这种文本文件内容
#!/bin/bash
xargs -0 -L1 -a "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment