very urgent ..How to print this ...

Hi

I want to write to a file say B.sh from a file A.sh, the statement given below:

awk 'BEGIN {printf("%1s","R10007");}'

I can print everthing except the symbol " ' "
i.e '
I tried backslash \ , but failed

How to print this symbol ' ??

echo "awk 'BEGIN {printf(\"%1s\",\"R10007\");}'" > B.sh

Thanks But i want it in awk and not echo as i have 3 files here.Lets say a.sh, b.sh an temp.sh
I want to write command in a.sh so that it fetches data from temp.sh and write it to b.sh (a.sh -> temp -> b.sh)

contents of temp.sh is somethings like this:
printf("[%1,s]","R10007",);

i have to read this line using awk and write it to b.sh as below:
awk 'BEGIN {printf("%1s","R10007");}'

So that i can run b.sh and print this line(its my requirement)
As of now i was able to print :- awk BEGIN {printf("%1s","R10007");}
I can't print '

can unhelp me with this>?

awk '{gsub(/\[|\]|,/,"");gsub(/""/,"\",\"");print "awk '"'"'BEGIN {"$0"}'"'"'"}' file

Anyway u can print ' with:

> awk 'BEGIN{print "\047"}'
'