On 13 Mar 15:53, Chris G wrote:
On Fri, Mar 13, 2009 at 09:40:22AM +0000, steveydoteu wrote:
Chris, with your vast "experiences" you so often speak of, surely you would have found an alternate to the god awful use of chown and a wildcard expansion by now?
Like what? It's crude quick and simple but did basically what I needed in that particular case. Why try to be any cleverer?
if going for the lowest common denomitor, the use of shell globs would be thoroughly discouraged... not all shells glob, after all.
(And solaris' "/bin/sh" is actually made of shit, doesn't work anything like the standard says it should, and should therefore be killed as soon as possible).
Re my 'experience', a great deal of it is on old[ish] Solaris systems, and also various other (often old) varieties of Unix. I thus tend to go for "lowest common denominator" types of command because they work on every system I use.
/me 's experience appears to have so far covered Solaris, HP UX, Tru64, OS X Server (and I still haven't managed to work out why the hell anyone thinks that's a good idea), OpenVMS (hahahaha - I don't think I want to touch that again for a while), FreeBSD, OpenBSD, NetBSD and, at various points, most linux distributions...
find and xargs have been around for years and years and years - there's very little excuse to have not come across them...
I suppose that you also consistently use ps -ef rather than ps auxww?
Ho hum,