To install this package, run in Emacs:
M-x package-install RET shell-command+ RET
`shell-command+' is a `shell-command' substitute, that extends the regular Emacs command with several features. After installed, configure the package as follows: (global-set-key (kbd "M-!") #'shell-command+) A few examples of what `shell-command+' can do: > wc -l Count all lines in a buffer, and display the result in the minibuffer. .. < ls -l Replace the current region (or buffer in no region is selected) with a directory listing of the parent directory. | tr -d a-z Delete all instances of the charachters a, b, c, ..., z, in the selected region (or buffer, if no region was selected). man fprintf Open a man-page using Emacs default man page viewer. `shell-command+' can be extended to use custom Elisp handlers via as specified in `shell-command+-substitute-alist'. See `shell-command+'s docstring for more details on how it's input is interpreted..
Version 2.3.0 (15Oct21) - Add rgrep to shell-command+-substitute-alist - Fix shell-command+-substitute-alist customization type - Skip environmental variables when parsing a command - Check if command is being piped, in which case command substitution is avoided. - Fix persistent sudo bug, where any command after a sudo substitute would try to run as root - Improve command tokenization performance slightly.