neato then, just need to remember that it exists now
i am happy that i found out about the for i in * notation!
On 23/07/2004, at 9:58 PM, Ken Foskey wrote:
On Fri, 2004-07-23 at 08:47, Ben de Luca wrote:
well the file names appear to be well structured, and I have never
seen
the basename cmd before :). I use types of unix how common is the
command? it looks like it have been around for a while.
if i was worried about extra . I might use.
BASE=`echo ${FILE} | awk -F ".log$" '{print $1}'
For what it is worth it is extremely portable. More portable than awk
:-)
--
Thanks
KenF
OpenOffice.org developer
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html