If you have sed or awk on your system, you can conveniently use Cu M-| .
From the documentation:
M- | runs the command shell-command-on-region [...]
Run the command line in the lower shell with the region as input. Usually the display output (if any) in the `Shell Command Output 'temporary buffer; The arg prefix means replacing a region with it. Return the exit code from the TEAM. [...]
Note the bit about the arg ( Cu ) prefix.
Tip: Cx h set the region to your entire buffer.
daveloyall
source share