484 reputation
39
bio website
location
age
visits member for 2 years, 10 months
seen yesterday

Nov
19
comment How can I write an alias for cd such that it will fire ls after going into the directory to which I just cd'ed into?
.bashrc: export A=$PWD; export PROMPT_COMMAND='if [[ $A != "$PWD" ]];then A=$PWD; ls -l $PWD; fi'
Nov
17
revised How do I automate this in a shell script?
deleted 78 characters in body
Nov
13
comment Automatically pauseing rsync if target is full
if=/dev/stdin is unnecessary as it is default
Nov
11
comment How to subtract two times in shell
This solution is far more complicated than it shoud be.
Nov
11
awarded  Citizen Patrol
Nov
6
comment How do I retain custom PS1 in super user mode?
You could use 'sudo -s' instead of 'su'.
Nov
4
comment CSH - How to check if input is NOT number
'+' means 1 or more. '*' means 0 or more. The latter will match an empty string.
Oct
22
answered How do I automate this in a shell script?
Oct
21
answered Count records matching pattern with Awk
Oct
20
comment How do I automate this in a shell script?
Start with creating SSH keys and a sudoers rule with NOPASSWD. Then put your commands into a script and add the usual checks.
Oct
20
comment What does the command pkill -USR1 -n -x dd mean exactly?
This is only in the GNU version of 'dd' (AFAIK). A SIGUSR1 to 'dd' for other OSes (eg AIX, HP-UX & Solaris) will terminate the process, by default.
Oct
20
revised CSH - How to check if input is NOT number
added 15 characters in body
Oct
20
comment CSH - How to check if input is NOT number
$argv returns all the arguments, whereas $#argv returns the number of arguments
Oct
20
answered CSH - How to check if input is NOT number
Oct
7
revised How to perform a multi line grep
added 16 characters in body
Oct
3
answered How to perform a multi line grep
Oct
2
comment HPUX Logging Logins
That doesn't work on any HP-UX system I've used. Is that an extra product?
Oct
1
awarded  Yearling
Oct
1
awarded  Revival
Sep
30
revised How to get grep exit code but print all lines?
added 57 characters in body