.sh and sed

Aiza aiza21 at comclark.com
Wed Jun 16 11:16:15 UTC 2010


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.


More information about the freebsd-questions mailing list