Re: [Linuxcommand-discuss] Greetings & a Script
Brought to you by:
bshotts
From: Bruce B. <bbu...@ea...> - 2002-08-27 02:42:54
|
----- Original Message ----- From: "William Shotts" <wes...@co...> To: <Lin...@li...> Sent: Monday, August 26, 2002 7:33 PM Subject: Re: [Linuxcommand-discuss] Greetings & a Script > > Here's one that I use all the time.....I call it fe for > > "file explorer"...... > > > > There are actually two- the main one puts the $PWD > > in a temp file in my $HOME when I choose EXIT, > > then . dc (that's a dot and a space for 'source' ) cds > > me to that directory . > > > > > > > > ----------------------------------------------------- > > > > > > #!/bin/bash > > ###2.05 > > ### fe > > while : ; do > > select fname in $HOME / EXIT $(ls -aF) ; do > > if [ "$fname" = EXIT ] ; then > > echo "$PWD" > /home/farley931/.t2 > > exit; fi > > if [ -f "$fname" ] ; then > > less "$fname" > > elif [ -d "$fname" ] ; then > > cd "$fname" > > echo "$PWD" > > break > > fi > > done > > done > > > > ---------------------------------------------------------- > > ### dc > > cd $(cat /home/farley931/.t2) > > > > -------------------------------------------------------- > > One weird script at a time, man ;-) > :-) Actually this one is very practical, and I literally use it all the time......Haven't used mc since I wrote it... Will get back to you on the streamlined script soon. Bruce<+> > -- > ||||| William Shotts, Jr. (bshotts AT panix DOT com) > ||||| Be a Linux Commander! Follow me to http://linuxcommand.org > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Linuxcommand-discuss mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxcommand-discuss |