I'm trying to make a shell script, I want to cut a string using the 'cut' unix command, as follows:
namecmpaux=$(echo $namecmp |cut -c0-19)
But when I run the shell tells me the following error:
cut: fields and positions are numbered from 1 Try `cut - help 'for more information.
I remember previously used the 'cut' command using zero as the lower limit position, but now tells me that the command should start at 1. Why?, depends on the operating system? previously used SunOS and now i'm using ubuntu 12.04