I have a sample file the lines of which are delimited by "#" and it contains 3 fields.
A#B#C
D#E#F
Can I use UNIX variable substitution instead of the following to get values of each field in the lines?
cat file | while read a; do
f1=`echo $a | cut -d# -f1`
f2=`echo $a | cut -d# -f2`
f3=`echo $a | cut -d# -f3`
done