bug-coreutils
[Top][All Lists]
Advanced

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

Feature request: counting fields/chars from the right.


From: Chris Dew
Subject: Feature request: counting fields/chars from the right.
Date: Tue, 12 Sep 2006 11:13:27 +0100

Apologies if this is the wrong address, or the wrong protocal for a feature
request.

I need to use cut, but have variable numbers of fields/chars and often need
to count from the right hand side of a line.

Unfortunately the LIST sytax precludes cut being modified to accept -1 as
the 1st column on the right and so on (Ruby-style).

I was therefore thinking that cut could have a '-r, --count-from-right'
switch, which would make all  field/column values 'right-relative'.

I have not yet looked at the source, but as long as this would take me less
than a day, I am happy to add this functionality myself.  I don't want to do
this work then find out that it will not be included.

Regards,

Chris Dew. (Senior Developer, Mole Valley Farmers Ltd.)



This email may contain information which is privileged or confidential. This 
information is intended only for the named recipient. If you are not the 
intended recipient, please be aware that disclosure, copying, distribution or 
use of this information is prohibited. If you have received this email in 
error, we would be grateful if you would inform us as soon as possible by 
telephoning +44 (0) 1769 573431, or by email to address@hidden and then delete 
this email. Views or opinions expressed in this email are those of the writer, 
and are not necessarily the views of Mole Valley Farmers Limited or its 
subsidiary companies. Unless specifically stated, this email does not 
constitute any part of an offer or contract. 




reply via email to

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