[Dclug] useful bash shell function
israel at tux.org
Sun Oct 10 13:37:03 EDT 2010
On Sun, Oct 10, 2010 at 12:34:41PM -0400, James Ewing Cottrell 3rd wrote:
> On 10/10/2010 11:43 AM, Bruce Israel wrote:
> > So, vi or emacs? Perl or Python? bash, ksh, zsh or csh/tcsh? :)
> I am an emacs devotee, but I have been using vim because there are so
> many new features to learn, and either decide to adopt or ignore.
I use them both; emacs for anything programmable, for more
complicated tasks, for editing many files at once, or for editor
sessions that are going to be long (hours/days). I use 'vi' for
hit-n-run tasks; quick deletes and changes and similar tasks.
> I have been using Perl since the late 80s, but even in the early 90s I
> was disgusted. However, it is too useful to ignore. Like the Gosling
> Emacs Manual said, (about his own version of emacs) "It is a Beautiful
> Flower that Smells Terrible".
I've never liked perl and so never really learned it.
> I have put off learning Python for far too long, and since it seems to
> be used more commonly now, I have finally decided to master it.
Python I started using working at Google, since it's the scripting
language of choice internally. I really like Python a lot, and will
post at least one really long python script on this thread in a
week or two.
> But you
> forgot Ruby, which is even more attractive.
Ruby has some nice stuff, but I haven't really learned it.
> Ksh is OK, but has its limitations. Bash is better, and should even
> satisfy the t?csh junkies; once they give up their control structures,
> the rest of the capabilities are there. Zsh goes even further, allowing
> csh control structures. But it also has several wacko features that will
> rarely be used, as well as an incompatable word splitting behavior.
> Use of tcsh or csh is Punishable by Death.
LOL. I used to really like 'tcsh', but had to switch to 'bash' due
to requirements of a job about a decade ago, and I like it a bit
better now, though there are some aspects of it that are pretty
More information about the Dclug