bug-textutils
[Top][All Lists]
Advanced

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

Re: Reverse cut...


From: Andrew D Jewell
Subject: Re: Reverse cut...
Date: Mon Dec 2 11:41:04 2002

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
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-textutils





reply via email to

[Prev in Thread] Current Thread [Next in Thread]