3 ms·
Well, I knew #4, and I could have figured out the rest if I needed to, but still, good to know. I'm always surprised at how much of Unix's default command set
by astine 18y ago
Well, I knew #4, and I could have figured out the rest if I needed to, but still, good to know.
I'm always surprised at how much of Unix's default command set is oriented towards text manipulation. People always argue between Vim and Emacs. I wonder if anyone's ever compared Emacs and Bash.
- silentbicycle 18y agoIt'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.