Hi,

I am using different linux and unix systems with GNU.

Sometimes I want to pipe something into "cut" and get everything except
the last character. Or the last 2 characters.
I could use perl for that, but cut is smaller and should do the job, too.

In languages like php, perl, python it is possible to have nagative indexes,
say:

pwd | cut -c 0..-1 

this could cut the last character off (Newline). Counted from zero.

Or:
cut -c 1..
Could give everything after the first character (Counted from zero).

I think this would be a nice addon feature in "cut".
Count from 1 if you like that more :-).

Greets,
  T.Kloppenburg

-- 
Tjabo Kloppenburg - billiton internet services GmbH
Entwicklung + Technik

fon: 0271 30386-19
Weitere Infos �ber billiton erhalten Sie auf http://www.billiton.de/



_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to