[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] i hate csh
- Subject: [ale] i hate csh
- From: greg at turnstep.com (Greg Sabino Mullane)
- Date: Fri, 25 Jan 2002 23:16:05 -0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> host% ^pe^ep
>
> I don't think bash does that. Speaking of which, I also miss the
> "r" command in ksh for repeating a command in your history ...
Bash does do the caret substitution trick. It is also great at repeating
commands from your history. Just type "!!" to repeat your last command,
"!234" to repeat command number 234, or (my favorite) "!string" to repeat
the last command that started with "string." Say you run a "grep" command
and then, hours of coding later, you decide you want to run that command
again. Just type "!gr" and bash runs the last command that started with
the letters "gr" (in this case, "grep whatever"). Very nice.
There is a lot more it does too, but basically anything the the lesser
shells :) can do, bash can do, and usually improves upon it if possible.
I've been using bash a long time but I still get surprised on occasion as
I ask myself "is there a way to do that in bash" and sure enough, there
usually is.
Greg Sabino Mullane <greg at turnstep.com>
PGP Key: 0x14964AC8 200201251813
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iD8DBQE8Ueb2vJuQZxSWSsgRAlDuAKDW9GdaI4D8IT2S5VVI/ekihkvKDgCgpwPZ
ebon+9JKPXwkK4nB/9otPeo=
=NXny
-----END PGP SIGNATURE-----
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.