in reply to Re: backticks - bash instead of sh
in thread backticks - bash instead of sh

The command I'm trying to run is paste filename <(cut -d \" \" -f 2 filename2 | grep -v mean) >> filename3

Even if I begin with `/bin/bash ...` I get "sh: Syntax error: "(" unexpected".

Replies are listed 'Best First'.
Re^3: backticks - bash instead of sh
by ahmad (Hermit) on Jul 30, 2010 at 18:31 UTC

    Write it in Perl, or just use a bash file and call it through perl.

    I don't think this is a hard job to do in perl.

    You'll have to read tow files and output them in 1 file... and this has been done many times before over here ... use the search button in the top of the site to look that up