PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|LinuxGazette|issue102.txt =

page 3 of 53




     [Ben] Mike, it's certainly been a hell of an experience working with you
     all these years. We've had fun and we've been through some edgy times
     together, a bunch of sweet and only a little of the sour, and I'll always
     think of you as a friend (despite the fact that you're giving away all my
     secret plans, ya ratfink.)

     Wherever your life takes you, you have my best wishes for the future.

     [Thomas] Best of luck to you, Michael. As I say, keep in touch, and most
     of all, thank you. :) If you ever find yourself in England (or indeed, if
     I am ever likely to be in America anytime soon) be sure to let me know.

     [Heather] Hee hee, if you're about to be in America sometime Thomas, you'd
     better let us know, we'll have a TAG meetpoint and a party.

     We will miss ya, Sluggo. Hopefully not too much though - thanks for
     agreeing to stay on as a contributing editor, and maybe we'll see an
     article from you once in a while. Mike, it's been a grand time working
     with you, so don't be a strange... oh, alright, be as strange as you need
     to be, but like Thomas says, do keep in touch :D
     _________________________________________________________________

      This page edited and maintained by the Editors of Linux Gazette
HTML script maintained by [31]Heather Stern of Starshine Technical Services,
                       [32]http://www.starshine.org/ 
     _________________________________________________________________

   Published in Issue 102 of Linux Gazette, May 2004

More 2-Cent Tips!

 See also: The Answer Gang's [33]Knowledge Base and the LG [34]Search Engine
     _________________________________________________________________

     * [35]Variables in Shell Scripts
     * [36]Linux-kernel OS radio....
     * [37]GUIs don't fill up the whole screen
     * [38]Equivalents
     * [39]create new lilo boot loader - on 2nd drive
     * [40]How to run chat with several phone numbers
     * [41]The Dao of Knoppix for Rescue
     * [42]New version of WinMD5 for Windoze available
     * [43]telnet connection problem
     * [44]networking problems(configuring a wi-fi card)
            ____________________________________________________

Variables in Shell Scripts

   Jim Dennis ([45]the LG Answer Guy)
   Question by Guy Milliron (anonymous)

   Anyhow, I know it's simple, but I can't figure it out for the life of me. I
   use tcsh for my shell. How would I alias a command to do a CD to a directory
   of choice, and then automagically do an ls. 

   Long Hand: 
# cd [directory]
# ls -lag

     [JimD]

alias foo 'cd \!*; ls -lag'

     ...  works for me. If you give it one argument that's where you are
     chdir()'d to. No argument and you cd ~ and get a listing of your home
     directory. More args and you get an error from cd; just like you'd expect
     from the cd command.

     Note that aliases are subject to history expansion. That's why I'm using
     \!* --- which expands into foo's argument list whenever the foo alias is
     used.

     Note that bash aliases DO NOT perform history expansion. Thus you'd use a
     shell function instead:

function foo () { cd $1; ls -lag; }

     (Where  either the word function or the () are hints that this is a
     function definition --- but both can be used, too).
            ____________________________________________________

Linux-kernel OS radio....

   Thomas Adam ([46]The LG Weekend Mechanic)

   Hi, all.

   Stumbled across this[1] and I have to say it is weird but knowing people
   here someone (like me!) will find it interesting, if not amusing.

   -- Thomas Adam

   [1] [47]http://radioqualia.va.com.au/freeradiolinux

     [laugh] Man, that is seriously whacky. I like it. Let's see, where can we
     slide it into LG?...

     The problem is, of course, the time factor. I mean, if anybody was to
     listen to them and type it all in, they'd be almost two years out of date
=3=

1|2| < PREV = PAGE 3 = NEXT > |4|5|6|7|8|9|10|11|12.53

UP TO ROOT | UP TO DIR | TO FIRST PAGE

Google
 


E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.011307 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)