6,498 reputation
919
bio website taz.net.au/blog
location Australia
age 47
visits member for 3 years, 7 months
seen Dec 17 '13 at 2:57

Craig Sanders

http://taz.net.au/~cas/


Dec
3
awarded  Nice Answer
Oct
14
awarded  Good Answer
Sep
30
awarded  Explainer
May
23
awarded  Yearling
Mar
23
awarded  Good Answer
Jan
23
awarded  bash
Dec
16
awarded  Nice Answer
Nov
5
answered I want a static IP address for my (network? or computer?)
Nov
5
answered My Ping command does not seem to ever finish. Does that mean it is suceeeding?
Nov
5
answered Bash command to open a system's terminal
Nov
5
answered New user with root access in Linux Debian
Nov
5
answered Self complied version of GCC overwriting package installed version
Oct
11
awarded  Quorum
Oct
5
answered Apache2 permissions issue
Oct
5
comment How to use awk or sed to convert csv diffs into more readable format
you say that the real-life file would have a large number of columns...which implies that there could be differences in the values of any or all of those columns, so a simple three-column output format will not be sufficient.
Oct
5
comment How to write a Shell Script using the condition from a database
assuming that $1 actually contains a valid pg dbname, that should work (but it's good practice to quote all variables including positional parameters - i.e. use "$1" rather than just $1). Also, if you're using a ~/.pgaccess file as I suggested, you won't need -U postgres.
Oct
5
revised Subtracting dates in unix
modified script to be ksh rather than bash
Oct
5
answered Subtracting dates in unix
Oct
5
comment What is the difference in these two bash environments?
see unix.stackexchange.com/questions/29608/… and take note of what it says about passing arguments to the interpreter. IMO using /usr/bin/env like this is an abuse of the env program perpetrated mostly by the python community because they can't manage interpreter and library versioning properly.
Oct
5
answered How to write a Shell Script using the condition from a database