Berkeley CSUA MOTD:Entry 13236
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2004/4/16-17 [Computer/SW/Unix] UID:13236 Activity:nil
4/16    Is there a version of sort that keeps only one copy of identical lines
        on the output, or some other cmd that does that?
        \_ uniq
        \_ sort -u  -- op after reading the man page for a 3rd time.
           \_ sort -u doesn't exist on all systems.  cat foo | sort | uniq
              should be universally portable among *nix systems.
              \_ so that's why I never knew about sort -u ... -uniq poster
                 \_ yep.  IIRC it was a linux introduced bastardization.  I
                    don't see why they needed to make sort do something that
                    another ancient program already existed for as if
                    eliminating "| uniq" was such a great time saver or
                    radical improvement to the core unix utilities. -tom
                        \_ sort -u is not a linux bastardization. It has
                           has been a standard option to sort since System V
                           and BSD4.1. Steve Bourne mentions it on pgs 193,
                           194, 196 and 266 (the sort(1) man page) in "The
                           UNIX System" (1983).
                    \_ that's easy to discount. both freebsd (e.g., soda) and
                       solaris offer a sort with -u option.
                    \- Which unix version doesnt do "sort -u"? I will bet
                       you this is not a "linux bastardization" ... by which
                       I assume you mean this is a GNU sort option.
                       re: "time saver" ... the time being saved isnt the
                       time to type "|uniq" but the run time. Have you
                       done any system programming? Why dont you time the
                       difference between the two on a large data file with
                       some repeats. Gee why does wc have the -l option?
                       That is so misleading. Is it so hard to do
                       grep -n ^ file | sed '$!d' | cut -f1 -d: ? --psb
                       \_ If I cared about runtimes I wouldn't be using the
                          default system utilities.  Yes, I meant GNU since
                          sort is obviously not part of the kernel, which we
                          both know.
                          \- What would you use if you cared about runtimes?
                             You can write a faster grep? GNU != linux so
                             calling it a linux bastardization is 1. stupid
                             2. wrong. --psb
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2013/8/22-10/28 [Computer/Companies/Yahoo, Industry/SiliconValley] UID:54732 Activity:nil
8/22    http://marketingland.com/yahoo-1-again-not-there-since-early-08-56585
        Y! is back to #1! Marissa, you are SEXY!!!
        \_ how the heck do you only have 225M uniq vis/month when there
           are over 1 billion internet devices out there?
           \_ You think that every single Internet user goes to Y!?
        \_ Tall blonde skinny pasty, not my type at all -former Y!
	...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
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
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
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
	...