I have a file named unimplemented.txt which looks like :
verify-sdh-t1-satop-traffic-over-mpls-1for1-xxx,./TDM/SDH.xls
verify-sdh-t1-satop-traffic-over-mpls-1plus1-xxx,./TDM/SDH.xls
How do I use while loop to read above file and generate an output file at /TDM/SDH_check.xls which contains
verify-sdh-t1-satop-traffic-over-mpls-1for1-xxx
I tried doing this but it goes into infinite loop
while IFS="," read dummy casename tpname < "unimplemented.txt"
do
echo "$casename" > basename $tpname|sed -e 's/\..\+$//'
done
./TDM/SDH.xlsin the input data, butSDH_check.xlsas the output file name, so there's that extra_checktoo