Hello,
Could you put some light on this:
> echo "ref_categorie=test" | cut -c1-15-
test
> echo "ref_categorie=test" | cut -c1-14-
=test
echo "ref_categorie=test" | cut -c15-
test
echo "ref_categorie=test" | cut -c15
t
>
It's executed on AIX if that matters. The man page is not very verbose. What I've figured out myself is that cut -c removes chars from string (which is stated in manpage actually:) ). I've found a few examples via Google. So after -c is the chars position I suppose. Also it looks like that without the trailing dash cut just prints the char at this position.
Here is what I don't understand:
1) "ref_categorie=" is 14 chars, why -c14- leaves also the '='?
2) What's the difference between -c15- and -c1-15- ? They do the same in my case, but maybe there is something that I'm missing.
Thank you very much for your help!