[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
syntax error near unexpected token `)'
From: |
konika |
Subject: |
syntax error near unexpected token `)' |
Date: |
Thu, 13 Aug 2015 06:00:56 -0700 (PDT) |
Hi
i am new to make file and trying to figure out how to write the command so I
dont get the error:- syntax error near unexpected token `)'
Its very basic one line
(echo -n "Total "; zcat ../raw/shNuak1-D704_S4_L001_R1_001_sample.fastq.gz|
echo -n $((`wc -l`/4)); ) > test.stats
it works fine on its own in shell
but in make file
%.stats: %.int %.sam
(echo -n "Total "; zcat
../raw/shNuak1-D704_S4_L001_R1_001_sample.fastq.gz|
echo -n $((`wc -l`/4)); ) > test.stats
it gives the error
/bin/bash: -c: line 0: syntax error near unexpected token `)'
/bin/bash: -c: line 0: `(echo -n "Total "; zcat
../raw/shNuak1-D704_S4_L001_R1_001_sample.fastq.gz| echo -n ); ) >
test.stats'
make: *** [shNuak1-D704_S4_L001_R1_001_sample.stats] Error 1
Any ideas how to fix it?
--
View this message in context:
http://gnu-make.2324884.n4.nabble.com/syntax-error-near-unexpected-token-tp16488.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- syntax error near unexpected token `)',
konika <=