In c shell script, I'm trying to pass bbb to awk sub, but apparently it does not work.
#!/bin/csh
set aaa=a
set bbb=b
#And I'm using it in awk sub
set ccc=`echo $aaa | awk '{sub("a",$bbb); print $0}'`
echo $ccc
But echos empty and dunno why.
Note if I replace $bbb with "b" then it works well.