Hi,

Han Boetes schrieb:
> Michael wrote:
>> I am looking for sh/ksh replacement for the following bash command:
>>
>> $ X="abcdefghi"
>> $ echo ${X:0:2}
>> ab
> 
> cut(1)

Thanks a lot, sometimes the obvious solutions are the hardest to find...

$ X="abcdefghi"
$ echo $X | cut -c 1-2
ab

:-)


Michael

Reply via email to