On Thu, Oct 03, 2002 at 09:33:04PM -0700, Robert Monical wrote: > > >Anyone else have any useful functions or aliases they'd like to > >show off? > I'm glad that you asked. I was looking for an FM to > read.............
If you like learning by example (heh, is there any other way?), go to freshmeat, search on bash completion (or maybe bash_completion). This is not only a quite cool extension of bash, but uses bash functions quite heavily (and other bashisms like arrays too). Examples: # ifup<TAB_KEY> eth0 eth0:0 eth1 lo ppp0 Lists all available interfaces. $ rpm -q r<TAB_KEY> radvd reiserfs-utils rpm-devel raidtools rep-gtk rpm-perl rcs rep-gtk-gnome rpm-python rdate rep-gtk-libglade rpmdb-redhat rdist rhn-applet rpmfind readline rhn_register rpmlint readline-devel rhn_register-gnome rrdtool readline2.2.1 rmt rrdtool-devel readline41 root-tail rsh redhat-config-network rootfiles rsh-server redhat-config-users rp-pppoe rsync redhat-logos rpm rxvt redhat-release rpm-build All packages beginning with 'r'. Quite cool and useful too :) Anyway, the functions are enlightening and fun to play with as well. In fact, a nice by-example bash tutorial. -- Hal Burgiss -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list