list in shell

when i give this command at prompt it works

paste <(cut -f1 file1) <(cut -f3 file2) | someawkscript

but when the same is addex to any shell script and run it does not work
the erro is at (
even if i enclose in single or double quotes or enclose the entire
line in double quotes it does not work.

any help

Please post the entire output and the complete error message.
The first think that comes to mind is that the script is interpreted by a shell different than yours (i.e. check the shebang).

#my script is file named "q" and input comes from file named "file1"
paste <(cut -c37-42 file1) <(cut -c43-53 file1 |amtawk )
q: syntax error at line 1: `(' unexpected
"paste <(cut -c37-42 file1) <(cut -c43-53 file1 |amtawk )"
q: paste <(cut -c37-42 file1) <(cut -c43-53 file1 |amtawk ): not found
q: syntax error at line 1: `)' unexpected
paste <\(cut -c37-42 file1\) <\(cut -c43-53 file1 |amtawk \)
q: (cut: cannot open
awk: can't open file ): No such file or directory (error 2)
source line 4 of program <<
{
samt = substr($0 ... >>
paste <"(cut -c37-42 file1") <"(cut -c43-53 file1|amtawk")
q: syntax error at line 1: `)' unexpected
paste <"(cut -c37-42 file1) <(cut -c43-53 file1|amtawk")
q: syntax error at line 1: `)' unexpected

Please post the entire script. You can also try executing the code with a different shell. Try with bash:

bash ./q

some homework and got the solution.

my default shell interpreter is bsh/sh
adding a line at the beginning was the trick
SHELL=/bin/ksh

thank u anyway

make sure your 'script' is interpreted by the same shell interpreter as you're using for your 'command line', i.e. specify a proper '#!/bin/<myCLIshell>' in your script.