Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2010 19:16:06 +0800
From:      Aiza <aiza21@comclark.com>
To:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   .sh and sed
Message-ID:  <4C18B276.4080900@comclark.com>

index | next in thread | raw e-mail

Trying to use sed to remove the path from the file name.
Variable has complete path plus the file name
/usr/local/etc/filename
Need variable containing only the file name.
Is the sed utility the best thing to use?
Is there some other utility better suited for this task.
How would sed by coded to do this?

Thanks for your help in advance.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C18B276.4080900>