Hi schneidz,
This help is simply awesome.By going line to line definitely I am finding my desired Pattern.
Could you please help me to understand * point in your code
awk '{print $1}' sumit.txt | sort | uniq > sumit.key ---->> This provide sorted and unique value(I understand)
for key in `cat sumit.key` ------> Taking unique value of first column (I understand)
do
echo $key : `grep $key sumit.txt` --> *What is role of echo $key : as i know 'grep $key sumit.txt' gets patterns matching.
done | sed s/" "//g | sed s/:,/:/ > sumit.out
So if i understand this logic about "echo $key : "I will convert this into TCL.
Using of sumit.txt & sumit.key is really attractive
.
Thanks
Sumit Sharma