; For what it is worth, when i hassled Westpac, they actually personally
; phoned and mailed me with an apology and a promise that they are actually
; working on making their website fully standards compliant. So far nothing
; has changed, but I live in hope. If you don't hassle them, they will kee
; I used do do this stuff for various clients including the oil industry..
; and managed to keep interactive websites (orders, registrations, remote
; website updates..) operable and bulletproof with complex javascript etc.
; for the current AND previous versions of IE, NS, Opera, Knoqueror, on
Please disregard my last email with subject `9fans', it was accidentally
generated. I considered not saying anything, but this is quicker than
explaining to everyone individually what happened. (Those technically
inclined can scroll down for a longer explanation)
I'm sure this has been brought up before, I think the free software
community (us) needs to do something about recruiters who *insist*
on applicants submitting resumes and what-not in Microsoft Word format.
I've been sending back a polite message saying that I
simply do not use Microsoft software
; I want to check to see if there are any files to move (otherwise I get an
; error message generated if there are none)
; Then move the relevant files
;
; if [[ -e *.TXT ]] ; then
; mv *.TXT /tmp
; fi
yes, I thought as much. That's pointless, just move them. If there's
nothing there, you won't
; how do I check that a file with a particular extension exists in a directory
; in a shell script.
a more relevant question is why do you want to? It sounds like you're
checking to see if a file exists before you do something to it (process
it, move it, delete it) this is a race condition and is
This is probably a FAQ here -- but can anyone recommend a non-NVIDIA
graphics card that has 2d _and_ 3d dri capabilities in XFree 4.0.3?
Bonus points for suggesting a cheap place online to purchase one. :)
cheers,
r.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
;; I have a csv list of names and emails in the form below
;; name,email,company,title
;; I think it is allready sorted by the email field.
;; I want to do a case insensitive match on "email" and remove duplicates.
;$ sort -t , -k 2,2 test -u -f file # may suffice.
sigh. s/test//
r.
-
; I have a csv list of names and emails in the form below
; name,email,company,title
; I think it is allready sorted by the email field.
; I want to do a case insensitive match on "email" and remove duplicates.
$ sort -t , -k 2,2 test -u -f file # may suffice.
r.
--
SLUG - Sydney Lin
; After upgrading, I am unable to connect to mailserver with fetchmail,
; to remore hosts with apt, telnet, ssh, irc, lynx or mozilla. Messages
; are: unable to resolve host... something wicked happened... domain
; name could not be confirmed... it appears that there is a problem with
; DNS an
; On my box (deadrat 6.2) the hwclock reports the right GMT but the system
; clock seems to have drifted over the 20 days the box has been up so it is
; now about quarter of an hour slow...
;
; any suggestions for why that is happening and a [fix | pointers to docs] ?
;
http://cr.yp.to/clockspe
; i want to get rid of sendmail and put in an easier to configure
; equivelant. i also want to transfer the current emails that are read
; through sendmail.
;
; so, can anyone suggest an easy to configure, secure, imap, email server
; other than sendmail?
http://cr.yp.to/qmail.html
http://www.gl
; has support for sending/retriving of multiple email acounts pop3 that is. I
; was woundering what do the slug users use or recommend besides netscapes
; email client :).
nmh, why? It's text based, minimal, and adheres to the toolset approach
(read _not_ monolithic), then again I have a sickness
revealed the following..
Remote OS guesses: Linux 2.1.122 - 2.2.14, Linux kernel 2.2.13
I'm glad they woke up to themselves.
--
Russell Davies
UNIX Systems Administrator
Deutsche Bank
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/lis
whoops, make that;
- $ sed "s/,,/,'',/g;s/,,/,/g;s/,$//" <<_
+ $ sed "s/,,/,'',/g;s/,,/,/g;s/,$//;s/^,//;" <<_
r.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
; and parses it to another program. I want to check each field to see if it is
; blank and if so exchange the blank for two single quotes (ie: '' ).
; I am trying to use an if statement right now, but I cant figure out how to
; represent a blank.
[snip]
; What's wrong with the above picture?
w
; Of course you can, if it is your box you put on what you think makes it
; useful. Hundres of thousands of boxes have Perl on them. Which OSes
; come with Perl as standard? Solaris does *now* (v8), others are following
; as well. But they didn't used to.
I avoid perl as well if I want something
; The moment you find this to be the case, is the moment you should go out
; and compile the GNU toolchain for your platform.
I don't like this argument. This often isn't an option.
; All these portability problems go away once everyone is using the GNU command
s.
IMO, it's better (and less eff
; rm -rf /bad/directory
;
; this deletes the directory as well, you can mkdir /bad/directory again
; afterwards if you need that directory to be there.
assumption. how do you know he didn't have dotfiles in that directory he
wanted to preserve?
r.
--
SLUG - Sydney Linux User Group Mailing Lis
; >cd $dir && echo * | xargs -n 400 rm -f
;
; And just as well, echo * would have run into the same arglist
; limitations. ls | xargs rm would be better.
;
quite.. without the performance hit of forking and running rm _for every
file_ *ouch!*
As an aside, I'd like to comment on the 'find . -pri
; I have this from time to time and I think the way I did it is remove the
; files 1 at a time using this command:
;
; find /bad/directory/* -print -exec rm -fr {} \;
that's horribly inefficient (assuming it works), surely if the problem
is a limitation on argv, then wouldn't your /bad/directory
; I have managed to runout of inodes on a partition du to a buggy routine.
;
; I know what I want to delete, but when I do rm -f * in the problem
; directory it comes back with "Argument list too long"
;
; Can anyone think of a way around this one?
restricting the argument list by refining your
; one of the things i *really* dislike about gnu sed (the others are too
; far gone to be worth considering) is it doesn't support \123 style
; escapes
That's funny, the following seems to suggest GNU sed is one of the few
seds that DOES support it (which make IT not worth considering,
GNU exten
; I accidently typed cd // on one of my slackware 7.0 boxes.
;
; Surprisingly it happily took me to //, which seems to be an alias for the /
; directory.
;
; Interestingly this 'feature' does not occur on DeadRat, or on earlier
; versions of slackware.
;
; Does anyone know why this might have h
; I would still use sed to do it, in particular from a shell script which may
; process a large number of files.
;
; Sed is much quicker to load than perl.
the only problem being that sed doesn't cope with NULs, I'm talking
about sed in general, not a particular version of GNU sed either, so
d
; garfield:~# ascii ^@
; ASCII 0/0 is decimal 000, hex 00, octal 000, bits : called ^@, NUL
; Official name: Null
;
; So it's just a null so something like
;
; print $c unless ($c = 0);
no, that's wrong.
- you're assigning not comparing.
- what are you comparing? (what
; ; I have a file that's being processed by Perl that has a bunch of
; ; "^@" symbols in it. This is the "Control-at" character.
; ; I want to expunge the file of all the "^@" symbols.
;
; You seem to have NULs embedded in your file, many programs are well
; known for not coping with them too w
; I have a file that's being processed by Perl that has a bunch of
; "^@" symbols in it. This is the "Control-at" character.
; I want to expunge the file of all the "^@" symbols.
You seem to have NULs embedded in your file, many programs are well
known for not coping with them too well.
s/\00
; This is driving me nuts, I've doen this before and do you think I can
; drag the command out of my memory! What's the syntax in sed that puts
; the wild card expresion matched in the first side of the substitute back
; in on the replace side?
I believe you're thinking of '&'.
r.
--
SLUG - Sy
; > > newmonth = `echo $oldmonth | sed -e 's/0\([1-9]\)/\1/'`
; > newmonth = `echo $oldmonth | sed -e 's/^0//'`
; >
; Both of these work on the target system, so I'm going with the one that
; involves the least typing.
You can save another couple of keystrokes by omitting the '-e'.
r.
--
SLUG
; $CHARS is not being expanded when enclosed within single quotes.
;
; try:
; sed -e "s?CHARS?$CHARS?g"
firstly, you don't need the -e. secondly, there's no need for an
alternate pattern/replacement seperator, sed is smart enough to
recognise that when '$' is followed by something, it doesn't de
; You can eliminate all forking by learning some sed, although admittedly this
I hasten to add 'except for the initial fork for sed' there. ;)
r.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
; Try the -w (grep for word) option.
;
; Also you could reduce the pipeline to:
;
; grep -w $TMP < /tmp/modemlist$$.tmp 2>/dev/null | tail -1
;
You can eliminate all forking by learning some sed, although admittedly this
is slighly less readable to novices than the grep -w|tail solution.
; grep is giving me a hard time in a script with the following line which need
; modifying:
; LINE=`cat /tmp/modemlist$$.tmp | grep -e $TMP 2>/dev/null | tail -1`
;
; $TMP contains a PID number which I need to grep out of the modemlist$$.tmp
; file but need to check with spaces eg.. " $TM
; It's not a problem for an individual with the skills. But for a
; distribution this is not good enough.
Isn't this exact (bogus) argument applied to linux as a whole? I'm sick
of hearing it, if you don't have those skills you shouldn't be playing
with MTAs.
r.
--
SLUG - Sydney Linux User G
; Crap. If all we had to do was to change the name, then qmail would've been
; part of Debian ages ago and we wouldn't have spent the huge amount of
; effort
; to convert our main server away from qmail. Read this from
; http://cr.yp.to/qmail/dist.html:
yes, that was an assumption on my part.
; dnscache is not free software.
it certainly is free software. I suggest you review your facts.
r.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
; Any ideas what could be causing this? I recently upgraded to
; bind-8.2.2_P5-9, from the latest Redhat RPM, following a security alert,
; so that's my prime suspect. Has anyone else had problems?
;
; All my queries should be forwarded to the Uni's central nameserver
; (I've got a line
;
; > Don't do that. In order to do what you want, you need to be using
; > array references.
; > return \(@a, @b);
;
; Ah. I had tried return (\@A, \@B); but got references back
; ie
; ARRAY(0x80d721c)1 ARRAY(0x80d7234)
they're the same thing.
; perlref refers me also to perlreftut for a t
; Simple Q,
;
; My perl script has a function and I want to return two
; arrays from the function. I found that I can't just assign
; the return values like this;
;
; (@A, @B) = readData();
;
; sub readData
; {
; # get data and create @A and @B
; return (@A, @B);
; }
Don't do t
40 matches
Mail list logo