Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks
Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks
Hi,
did not really get what you are looking for.
but if you want to trim a particular variable value there are many ways to do it
eg
output=echo $variable|awk '{substr(startpos,endpos,$0)}'
hope this helps
typeset -L32 Variable