My bash script does many things, among which creating another script. I would like to have the following line to be executed from within a script. But it does not work (grep is executed instead of pasted in search.sh). What am I doing wrong?
cat "grep --ignore-case $1 *.find" > search.sh