Hi All,
what are c1,c5...etc....in cut command.
example : v_update=`echo $v_update| cut -c1-$count`
i am getting below error if i run the above command
cut: invalid range specifier
what could be the reason.
What the change i have to make in my command to avoid this error.
Regards,
Ravi Kumar Garlapati
Hitori
July 21, 2006, 2:07am
2
cut -cm-n - select charachters from input line from m to n,
try execute echo $count (or debug the script) before v_update=`echo $v_update| cut -c1-$count`, may be problem in value of $count variable
Hi Hitori,
Thank you very much.
You had given a clear explaination about command.
Can u suggest me a very good book exclusively for Shell Script UNIX.
where in i could get the clear picture as u have explained in ur reply.
Thanking you once again.
Regards,
Ravi Kumar Garlapati
Hitori
July 21, 2006, 2:44am
4
For shell programming look Welcome to The UNIX Grymoire! , Advanced Bash-Scripting Guide
For commands' manuals look into man pages (e.g. man cut)