To know the return value of a command, in BASH run $ echo $? and in CSH/ TCSH run $ echo $status which will give you the return value (0 or 1) of the last command (the one issued just before the echo)… more →
*NIX tricksh446log wrote 1 week ago: Here’s a fun, short program. The primary goal is to write a program that outputs the source co … more →
jasonk2600 wrote 3 weeks ago: You can use aliases to decrease the amount of typing you need to do to get commands you commonly use … more →
thethinman34 wrote 3 weeks ago: Christian youth groups are promoting the new Christian Side Hugs (or CSH) as opposed to normal Front … more →
kousik wrote 4 weeks ago: To know the return value of a command, in BASH run $ echo $? and in CSH/ TCSH run $ echo $status whi … more →
Kaushal wrote 1 month ago: Just add alias calc ‘awk “BEGIN{ print \!:1 }”;’ to your .alias or whatever- … more →
247wallst wrote 1 month ago: Burlington Northern Santa Fe Corp (NYSE: BNI) surged close to 30% to a yearly high of $97.59 followi … more →
kousik wrote 1 month ago: I just stumbled upon a few ways to change the default login shell to bash: The easiest one is $ chsh … more →
kousik wrote 1 month ago: The problem: I have two files, file-1 and file-2, each of which has two columns; and I want to add … more →
ddouthitt wrote 2 months ago: The first thing I do when I log into a system, including Solaris, HP-UX, FreeBSD, and Linux is exec … more →
kousik wrote 2 months ago: First, some basics about directory stack: 1. Show directory stack with indices: $ dirs -v The top di … more →
kousik wrote 2 months ago: First the “bad” way of doing it: I would create an alias bk to go to the previous direct … more →
Beny wrote 3 months ago: Beberapa waktu lalu terlintas dalam benak saya ketika mencuba membuat program client-server, yg nant … more →
Amin Jaffer wrote 4 months ago: In ksh shell – case statement case variable_name in pattern1) statements1 ;; pattern2) stateme … more →
Colum McAndrew wrote 4 months ago: How to call a Microsoft HTML Help (.CHM) file programmatically can be a confusing task. There are ju … more →
ccollins wrote 5 months ago: Computer Data Output File this one under “Another Nifty script-let”. The problem this t … more →
Amin Jaffer wrote 6 months ago: Ksh/Borne/Bash shell $ ls /usr/bin …. # when success value is 0 $ echo $? 0 $ ls /usr/bin/blah … more →
xaviergonne wrote 6 months ago: In the corner of nothing, nothing can begin, The fears in virtue, the hopes in sin. Whatever the des … more →
teamlram wrote 9 months ago: A lot of VC firms have shifted their focus more towards that gray area between VC and PE called … more →
funderstogether wrote 9 months ago: by Bill Pitkin, Conrad N. Hilton Foundation Los Angeles has often been referred to as “the homeless … more →