Re: Reverse cut...
Andrew D Jewell <[email protected]> Mon, 2 Dec 2002 11:34:13 -0500
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <a05111702ba113b25e3f9@[10.0.1.23]> |
If you use the coreutils from http://alexautils.sourceforge.net/ (some docs at http://alexautils.sourceforge.net/text.html the package itself at http://alexautils.sourceforge.net/coreutils-4.5.3-alexa02.tar.gz) the version of cut has many many extensions, including the one you're after. Use : cut -d/ +1 where the "+" means count from the end. adj At 8:21 AM +0100 11/27/02, Fabrizio Morbini wrote: >Hi, I have a question on the command "cut": > >-For example immagine that I want to select the filename from an absulute >path (and the files hasn't all the same depth). > >How I can ask to cut to start to count the delimiter '/' from the end of >the string instead of from the start? > >There are other solution? > >Thank you very much and Best Regards! > >Fabrizio. > > > >_______________________________________________ >Bug-textutils mailing list >[email protected] >http://mail.gnu.org/mailman/listinfo/bug-textutils