I have a script which is taking a 10 character variable input by the user. If it begins with a zero, the script unwittingly strips that off, & proceeds with 9 characters. I want to rectify it so either it doesn't do this or if it recognises only nine characters further into the process, adds a zero to the beginning.
The initial syntax calling for the variable is
Code:
echo -n "Enter core-follow date/time for BOC: "
setenv BOC $<
Had to mod another script to add a zero, but this isn't ideal, if variable doesn't start with zero.
Code:
RETRIEVE FROM FILE "$PAN_MODEL_DIR./data/R$REACTOR..LOADING.0$BOC."