Berkeley CSUA MOTD:Entry 26276
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2002/10/22 [Computer/SW/Unix] UID:26276 Activity:high
10/21   Just an idea-- what do you think of a sort of "follow" command
        for tcsh or bash.  Idea being
        % mv foo.bar /some/really/long/dir/path
        % follow        # cd to /some/really/long/dir/path
        \_ try replacing "follow" with
           % cd !$
        \_ cd !$
           \_ Thanks, I knew I wasn't that creative.
              \- more interesting in a global and directory-specific
                 history stacks. ok tnx --psb
              \_ pushd !$
        \_ There are also times when I do something with a file, and
           then want to go to its directory, e.g.
                % mv oldname /new/directory/newname
                % cd /new/directory
           So in t?csh, I have 'there' aliased:
                there:   aliased to cd `dirname !-1$`
           -geordan
           \_ naughty geordan.  'cd !$:h', or in this case 'cd !-1$:h'
              --scotsman
              \_ Not necessarily -- the reason brg and I chose this method
                 was for the case that /new/directory/newname might be a
                 directory itself.  So you'd use 'there' for the general "I
                 want to go to the last directory I specified." -geordan
           \_ wow THANKS geordan  -rosario #1 fan. You got more trix?
              \_ Silly rabbit, Trix are for kids. -geordan
2024/11/23 [General] UID:1000 Activity:popular
11/23   

You may also be interested in these entries...
2012/8/30-11/7 [Computer/SW/Apps, Computer/SW/Unix] UID:54470 Activity:nil
8/30    Is wall just dead? The wallall command dies for me, muttering
        something about /var/wall/ttys not existing.
        \_ its seen a great drop in usage, though it seems mostly functional.
            -ERic
        \_ Couldn't open wall log!: Bad file descriptor
           Could not open wall subscription directory /var/wall/ttys: No such file or directory
	...
2011/11/20-2012/2/6 [Computer/Companies/Apple, Computer/SW/Unix] UID:54237 Activity:nil
11/20   Are there tools that can justify a chunk of plain ASCII text by
        replacing words with words of similar meaning and inserting/removing
        commas into the text?  I received a 40-line plain text mail where
        all the lines are justified on left and right.  Every word and comma
        is followed by only one space, and every period is followed by two
        spaces.  The guy is my kid's karate instructor which I don't think is
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2010/11/21-2011/1/13 [Computer/SW/Languages/Web] UID:53988 Activity:moderate
11/21   Lifehacker's recommending Dreamhost as a personal web hosting service.
        Apart from csua, who do you guys use? --erikred
        \_ What do you want to use it for? Do you need CGI or PHP?  My
           brother worked for Dreamhost and said they are unethical. In
           fact, he sued them. This refers to their treatment of customers
           and employees both. I don't know who  or what "Lifehacker" is,
	...
2010/8/29-9/30 [Recreation/Humor, Politics/Foreign/Europe, Computer/Theory] UID:53940 Activity:nil
8/29    http://www.google.nl/trends?q=ramadan,+porno&ctab=0&geo=ma&date=all&sort=0
        Funny graph.  -- linkpusher
	...