On Saturday 03 December 2005 20:54, Lawrence Bowie wrote:
Anders Johansson wrote:
On Saturday 03 December 2005 20:24, Lawrence Bowie wrote:
David, was your question answered?
He already mailed me off-list to tell me my solution worked
OK .. Well.. good job ... glad it worked .. it worked my way as well because i tried before sending it. :)
I never said your way wouldn't work, I said it's sort of overkill and unnecessary to use three programs where one will do. for i in `ls *` by the way is a classic mistake, since for i in * will accomplish the exact same thing without launching a new process. Randall Schwarz used to hand out the 'Usenet Useless use of cat' award to people who did things like cat foo.txt|grep bar and the use of `ls *` in your script is of the same calibre. If one program can do two things, why use two programs. Especially since you have to use the one anyway The original page documenting this award seems to have gone away, but here is a cached version http://www.t72.ru/~rz/txt/awards.html The use of sed is of course even more overkill