|
Prev: parallel 1.3: simple parallel processing.
Next: fails
From: Greg Russell on 4 Apr 2008 12:37 I need to cat a file if it has more than 30 lines and doesn't contain "#00000". Either of the two tests below work fine individually, but when combined with the && operator the test fails: $ if [ `wc -l /tmp/post | awk '{print $1}'` -gt 30 &&\ ! `grep -l "\#00000" /tmp/post` ]; then cat /tmp/post; fi [: missing `]' $ Where is my syntax error, please?
|
Pages: 1 Prev: parallel 1.3: simple parallel processing. Next: fails |