4 ms·
I'm a big fan of `sed -nel` for an unambiguous listing of the contents of a file. The only case that sed doesn't show is a missing trailing linefeed.
by thequux 3y ago
I'm a big fan of `sed -nel` for an unambiguous listing of the contents of a file. The only case that sed doesn't show is a missing trailing linefeed.
- eichin 3y agoI use "cat --show-all" at least partly because it's more teachable (since when I run into this I'm usually helping untangle someone who hasn't run into the problem before, and it's more explicitly about the problem instead of being a related thing that happens to expose it (like this, or hexdump)
- ramses0 3y agohexdump -C ...this is the only way.
- fsckboy 3y agowhy would you show a missing trailing linefeed? it's missing... do you mean it will do a single CR-LF whether there was a NL there or not?