Insert the output of shell command into emacs buffer

For the general case of inserting any output of a shell command to the current buffer, you can use the in-built keyboard chords:

C-u M-! <shell-command>

which runs the same shell-command function, and also inserts the output back at the point in the current buffer.

The entire key-stroke itself can be saved as a macro (and perhaps assigned to a shortcut) for easier invocation of common shell commands.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)