Page 1 of 1

Logical Operator in sddsprocess -match

Posted: 04 Jul 2012, 04:52
by dpe
On the sdds manual I see that I can use "&" and "|" to make logical operations when filtering data. But that two chars are reserved in bash and it complies to me:

Code: Select all

sddsprocess run1.cen test.sdds -match=col,ElementName=CAV1,ElementName=QUAD,|
Error (sddsprocess): invalid -match syntax

Code: Select all

sddsprocess -pipe=out run1.cen -match=col,ElementName=CAV1,ElementName=QUAD,| | sdds2stream -pipe=in -col=s,ElementName,ElementOccurence
bash: syntax error near unexpected token `|'
How to use this feature?

Re: Logical Operator in sddsprocess -match

Posted: 09 Jul 2012, 10:49
by soliday
Just put the option in quotes:

sddsprocess run1.cen test.sdds "-match=col,ElementName=CAV1,ElementName=QUAD,|"