Quote:
Originally Posted by padhu.47
Hi All, thanks for the reply ....
i dont have python or perl ....
I have only ksh, bash, sh, csh
please help me
|
then use awk
Code:
awk -F"," 'BEGIN{
t["1"]="6"
t["2"]="7"
t["3"]="8"
t["4"]="9"
t["5"]="0"
}
{
s=""
for(i=1;i<=4;i++){
if( substr($2,i,1) in t ){
s=s t[substr($2,i,1)]
}else{
s=s substr($2,i,1)
}
}
$2=s substr($2,5)
}
1
' OFS="," file