3,148 reputation
1916
bio website
location Florida
age
visits member for 2 years, 1 month
seen 1 hour ago

A Perl enthusiast, I earn my living doing Unix/Linux system administration and light systems programming. In a former life I was an ALGOL systems programmer before finding my real love was for Unix. My education is scientific with a Master of Science degree.


Oct
7
comment Regex to grep filler followed by signed float
@jake If this solved your problem, feel free to "accept" the answer.
Oct
7
comment Regex to grep filler followed by signed float
@jake Do you lines have trailing whitespace? If so, use `\s*$' as I noted.
Sep
22
comment Extract text from one iteration of top
top -n1 will run just one iteration.
Jun
23
comment How to set variables from find+exec?
You would use xargs from a pipe if you wanted to process multiple arguments (here, files) as a bundle to reduce the number of processes spawned. Terminating find with {} + produces the same effect. Neither are needed to generate the list of files you want.
Apr
1
comment Why do I need a tty to run sudo if I can sudo without a password?
@StephaneChazelas +1 for enlightening me that it's largely indigenous to Red Hat and its siblings and another ++ if I could for the current bug report!
Mar
20
comment Which directories are writeable in a system following FHS?
@MichaelKjörling Updated answer to reflect this.
Jan
30
comment How does Linux “kill” a process?
I'd add that since a kill -9 can't be caught, a process receiving it can't perform any cleanup (e.g. removing temporary files, freeing shared memory, etc.) before it exits. Hence, use kill -9 (a.k.a kill -kill) only as a last resort. Begin with a kill -hup and/or kill -term first and then use kill -kill as the final blow.
Jan
14
comment How to identify executable path with its PID on AIX 5 or more
I disagree specifically over point-3. Again, my disclaimer: I don't currently have access to an AIX machine. I would hope that you found something useful in my offerings, regardless.
Jan
14
comment How to identify executable path with its PID on AIX 5 or more
Copy your executable to any directory; cd to the directory and launch the executable with a relative path. You can't assume anything.
Jan
13
comment What are the legitimate uses of the `touch` command?
@Geek The manpages are your friend :-)
Nov
28
comment How do you find what keys the “erase” and “line-kill” characters are in Ubuntu?
@sim : Point well taken; done with thanks.
Oct
22
comment How to catch an error in a linux bash script?
@Stephane Chazelas point of quoting and signaling end-of-options well taken. Thanks for editing.
Oct
17
comment Detect if running in a virtual terminal?
@JosephR Correct. The value is often with cron or at jobs to avoid failures when scripts assume interactive input.
Oct
1
comment Exit vim more quickly
zz is simply the character typed twice while holding the shift key down.
Feb
19
comment What's the difference between a hard links and copied files?
@EmanuelBerg TMTOWTDI
Feb
19
comment What's the difference between a hard links and copied files?
@EmanuelBerg Create a simple shell script that echos $0 (the name by which it is run). Now create one or more links to the script. Run the script with its original name and by invoking the link. The lesson should be obvious, then.
Feb
18
comment What's the difference between a hard links and copied files?
@EmanuelBerg My point was that regardless of whether hard or soft links are used, it's the name by which the executable is invoked that determines the options and arguments that are valid for execution.
Feb
17
comment What's the difference between a hard links and copied files?
@rjmunro I beg to differ. The OP asked, "why would I want to use hard links at all?"
Dec
14
comment Is there a way to find out when an OS instance was installed on a host?
You might look at Perl's [local::lib]metacpan.org/module/local::lib) module which can be installed in your home directory to bootstrap the installation of other modules without infringing on the Perl installed with the OS.
Nov
16
comment Zsh: dirs in reverse order
You would be better served showing some actual unsorted data.