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.