Berkeley CSUA MOTD:Entry 45041
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2006/10/30-11/1 [Computer/SW/Unix] UID:45041 Activity:high
10/30   My favorite command in UNIX is "cal". What is your favorite?
           \_ Nein, I vill be. A German and a Jerry, danke, und Heil! -John
              \_ PARSE ERROR. Are you on drugs again John?
                 \_ That's just my troll farm being rambunctious.  Use new
                    Extra Strength Troll-Gro for healthy and frisky trolls!
        \_ Based on frequency of use, gonna have to go with tcsh
           \- "strip tcsh"
              \_ unzip; touch; strip; finger; head; latex; mount; gasp; yes;
                 god; more; comm; spray; umount; sleep; zip; exit; dump
        \_ date
        \_ bc followed closely by procmail
           \_ bc? What's so special about bc? I picked "cal" because it is
              useful, and it is Cal!
              \_ I'd say I use bc and cal most. Bc is great when you
                 want to do simple math.
                 \_ Except that you have to tweak scale to get decimal values.
                    I prefer nickle or just perl -lne 'print eval', or better
                    yet, ~mconst/bin/pc  --dbushong
                    \_ You don't have to tweak scale.  You put scale= in your
                       .bcrc file just once.  You can also pipe to bc, it has
                       command line history and editing, variables, all the
                       basic math functions you'd expect on a decent
                       calculator and let's you write your own as well.  Your
                       bcfu is weak!  When you can pull this bc from my
                       hand, only then will you will ready.
                       \_ why can't it graph functions and find intercepts?
                          \_ why can't vi output quality latex for your
                             thesis?  why can't gcc debug your code?  why
                             can't the government provide services without
                             waste?   Because they're not designed to.
                             \_ Can you explain why using bc makes sense
                                instead of programs like mathematica, matlab,
                                maple, or igor?  I mean assuming you're not
                                pathalogically cheap or are selecting your
                                math software based only on demonstrating your
                                "fu"?
                                \_ If you don't know the difference between a
                                   small but powerful-for-it's-size CLI unix
                                   tool and a full blown math package like
                                   mathematica you wouldn't understand the
                                   reason for using either in the first place.
                                   Why do you use "ls" instead of "echo *"?
                                   Sheesh.  Enough trolling.  You're way into
                                   lame now.
                                   \_ Oh, no, I get it.  Matlab and mathematica
                                      are what those of us who actually need
                                      to do real math use to do useful work.
                                      Bc is what fat sysadmins use to show
                                      eachother how big their dicks are.
                                      \_ Thank you for participating in the
                                         "What is your favorite UNIX command?"
                                         thread.  Your math nerd hostility
                                         and insane rant has been duly noted
                                         and disregarded.  When you learn the
                                         difference between "unix command" and
                                         "shrink wrapped math package" you may
                                         attract more than disdain the next
                                         time you attempt to communicate.  In
                                         the mean time, I suggest classes on
                                         how to behave like a real human being
                                         might (even simulated behavior is
                                         acceptable online) rather than like
                                         the raging flaming asshole you are.
                                         Again, thank you for joining us.
                                        _/
                Likewise, asshole
                     /"\
                    |\./|
                    |   |
                    |   |
                    |>~<|
                    |   |
                 /'\|   |/'\..
             /~\|   |   |   | \
            |   =[@]=   |   |  \
            |   |   |   |   |   \
            | ~   ~   ~   ~ |`   )
            |                   /
             \                 /
              \               /
               \    _____    /
                |--//''`\--|
                | (( +==)) |
                |--\_|_//--|
                \_ you're pretty touchy for a hostile math nerd,
                   but you're still welcome to join humanity if
                   you ever figure it out.

                                      \_ soda% matlab
                                         matlab: Command not found.
                                         \_ /usr/bin/octave
                             \_ Well I'm just saying, doing that doesn't sound
                                that hard and would be a cool thing to have
                                in a quick commandline utility like this.
                                Newton's method and whatnot. It would have to
                                have the syntax support though. A simple
                                ascii-graphics attempt at a graph would be
                                cool too. Anything like that out there? I
                                guess it doesn't belong in bc though. gc?
                                \_ In theory you could get bc to output data
                                   in a format you could feed into something
                                   else to graph, etc.  bc supports loops,
                                   logic, functions, etc, so it can probably
                                   be extended to do a lot of things never
                                   imagined by the authors but you'd have to
                                   write those functions yourself or call them
                                   in bc from math library.
                       \_ My manpage says nothing about .bcrc, and it doesn't
                          seem to work.  What version are you using?
                          \_ # bc -v
                               bc 1.06
                               Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
                             \_ That's what I've got and soda's got, and the
                                .bcrc file doesn't work on either.
                                \_ Hmm, dunno.  I'm using freebsd.  Maybe
                                   their version is tweaked a bit.  You could
                                   alias bc to echo scale=foo | \bc or
                                   something I guess but it probably isn't
                                   worth it and would probably break other
                                   things.
                    \_ Those don't have good commandline editing (history etc).
                       I suppose adding that shouldn't be too hard.
                    \_ bc -l
                    \_ nickle has history, and I like its . thingy, but you're
                       right, my bc fu is weak.
                       \_ Nickle is overkill.  And there are things I use bc
                          for daily that I'm pretty sure are harder in nickle.
        \_ emacs
           \- emacs transcends unix
        \- find ... | xargs
        \_ grep -r something *
           \_ I tend to do more grep -r something .
              when I'm using -r ....  --dbushong
        \_ If you like cal(1), try ~dbushong/bin/c
        \_ screen
        \_ wow, did I actually see someone flicking someone off?
           \_ just Hostile Math Nerd upset that someone would dare use a
              simple program like bc instead of a monster to do simple math.
               \_ You see that Matlab code on your ass?  There's identical
                  Matlab code on my boot.
                  \_ Nope, just greasy math nerd on the rampage.
        \_ awk
           \_ perl
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/07/09 [General] UID:1000 Activity:popular
7/9     

You may also be interested in these entries...
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/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
	...
2011/3/12-4/20 [Consumer/CellPhone, Computer/HW/Laptop] UID:54057 Activity:nil
3/12    I am curious what others think of tablets like iPad. They don't seem
        useful to me, but I use my computer for more than web browsing,
        Facebook, and Twitter. Why would I buy one instead of a laptop?
        They seem like a disabled laptop to me, but at a higher price.
        \_ You are most likely a coder.  iPad is not for coders.  They are
           what you get your non-technical friends.  Or musicians.  Look at
	...
2011/2/6-19 [Computer/Networking] UID:54028 Activity:nil
2/5     hmm.
$netstat -at | grep LISTEN
tcp        0      0 *:43300                 *:*                     LISTEN
        \_ this is an sshd
tcp        0      0 *:49416                 *:*                     LISTEN
tcp        0      0 *:36201                 *:*                     LISTEN
	...
2010/3/10-30 [Computer/SW/Mail] UID:53751 Activity:nil
3/10    What email program do people in Cal CS use nowadays?  In my school days
        people used /usr/bin/mail, then RMail in emacs, then VMail in emacs.
        After my days people used Elm, Pine, Mutt (I forgot which order).  In
        my first two jobs we could tell the seniority of fellow engineers based
        on which email program they use at work, because everyone used what
        they used to use in their school years.  In my last two jobs though,
	...
2009/12/9-2010/1/13 [Computer/SW/Unix] UID:53586 Activity:nil
12/8    Is there a bash equivalent to tcsh's history-search-backward ?
        \_ There's something similar called... history-search-backward. It
           is a bit more limited, in that it only searches for strings and
           not glob patterns. You may find reverse-i-search to be useful also.
	...
2009/11/13-30 [Computer/SW/Unix] UID:53523 Activity:nil
11/12   How does one find out if a system has rootkit installed?
        \_ Unix or m$?
           \_ Unix. On M$ I always assume it's compromised.
              \_ Install Tripwire before you plug your server into The Net?
                 The only other answer I can think of is to reinstall the
                 OS from scratch on another server and do an md checksum
	...