${array[$i]} = /export/home
Trying to get rid of the initial "/"
chomped_array=`sed 's///^ /g' ${array[$i]}`
chomped_array=`sed 's////g' ${array[$i]}`
chomped_array=`sed 's////g' "${array[$i]}"`
Can't seem to get it right... the output is always
"First RE may not be null"
Thanks in advance. I hope someone can shed some light on this. I'm still new to sed.