Re: Need help with sed statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Bartmess wrote:

> I'm trying to express only the filename from a filepath, i.e., 
> whoopie.txt from /opt/dev/whoopie.txt.

I see you already have received solutions.
Here is a simpler one (no sed, no basename):

COMPLETEPATH=aa/bb/cc/dd
ONLYFILENAME=${COMPLETEPATH##*/}


-- 
   Roberto Ragusa    mail at robertoragusa.it
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux