Function: cua-shell-command-on-rectangle
cua-shell-command-on-rectangle is an interactive and byte-compiled
function defined in cua-rect.el.gz.
Signature
(cua-shell-command-on-rectangle REPLACE COMMAND)
Documentation
Run shell command on rectangle like shell-command-on-region.
With prefix arg, replace rectangle with output from command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/cua-rect.el.gz
(defun cua-shell-command-on-rectangle (replace command)
"Run shell command on rectangle like `shell-command-on-region'.
With prefix arg, replace rectangle with output from command."
(interactive (list
current-prefix-arg
(read-from-minibuffer "Shell command on rectangle: "
nil nil nil
'shell-command-history)))
(cua--rectangle-aux-replace -1 t t replace 1
(lambda (s e)
(shell-command-on-region s e command
replace replace nil))))