I am having two file naming Extra_info and Class_infoClass_info contains data :stuId stuName stuClass S01    jagdeep  FirstS02    harsh    FirstS03    Roop     SecondS04    Kali     ThirdExtra_info contains extra information about student likestuId stuCity stuEmail         stuPhoneS01    Sirsa  faltu@gmail.com  1234567890I am getting result from both files using grep for stuId and displaying the result as:res1=`grep $stuId $locDir/Class_info`res2=`grep $stuId $locDir/Extra_info|cut -d  -f2-` ## also I tried res2=`grep $stuId $locDir/Extra_info|awk '{$1= ; print $0}'`echo $res1 $res2Instead of displaying:      S01 jagdeep First Sirsa  faltu@gmail.com  1234567890It is displaying:     Sirsa  faltu@gmail.com  1234567890As I could think at the time of echo the variable res2 is nullifying result from res1.Please, suggest the possible reason for this and please provide solution for the same.
Command in variable one are affecting output of other variable when displayed together in UNIX
bash;awk;echo;cut