2 ms·
It's not a meaningful comparison because it's not an either/or. You can use said shell commands inside Emacs pretty easily: M-| is shell-command-on-region, with
by silentbicycle 18y ago
It's not a meaningful comparison because it's not an either/or. You can use said shell commands inside Emacs pretty easily: M-| is shell-command-on-region, with output to another buffer, and univ. argument M-| replaces the region with the command's output. Same with vi, for that matter: :1,10!sort pipes the first ten lines of file through sort, for example. vi has ex mode, all the commands starting with ":". Ex is basically an embedded sed.)
2. None of the shell command stuff is tied to bash -- you can use any of them with sh, ksh, zsh, etc.
- astine 18y agoIt doesn't have to be an either/or for the comparison to be meaningful. As to the specicifity to Bash, I could have substituted 'shell' or Unix environment just the same and meant the same question, that is, the advantages of working within Emacs or Vim, versus do the same operations directly from the command prompt.
- silentbicycle 18y agoI usually run the command prompt inside Emacs, anyway -- it's another big text buffer to edit / copy from.