Without writing a novel to try and explain what I am trying to do. I will simply ask what I need help on.
lib_dlt1=`echo ${lib_array[$i]} | cut -c 1-18`
#this works fine except for the white spaces.
I was trying to add another step to take out the blank space with the following
lib_dlt=${lib_dlt1#*\ }
except I can't get it right. The previous takes out everything BUT the white spaces.
Please help.
lib_dlt1=`echo ${lib_array[$i]} | cut -c 1-18`
#this works fine except for the white spaces.
I was trying to add another step to take out the blank space with the following
lib_dlt=${lib_dlt1#*\ }
except I can't get it right. The previous takes out everything BUT the white spaces.
Please help.