Thanks very much for the prompt reply.. I tried running the command you gave me on command line I'm getting a few errors
> awk 'BEGIN{OFS=FS=","}{ gsub(" ","",$2) }1' "user.db"
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: bailing out near line 1
>
hey i have taken one line of your test file as follows,
var1="1331F9E9DB7C2BB80EAEDE3A8F043B94,AL7 1DZ,M,50"
then
echo $var1 | tr -d " "
o/p:1331F9E9DB7C2BB80EAEDE3A8F043B94,AL71DZ,M,50
surely it might help you out, if a blank space/tab is there .