Logical Operator in sddsprocess -match

Moderators: cyao, michael_borland

Post Reply
dpe
Posts: 29
Joined: 21 Mar 2012, 05:35

Logical Operator in sddsprocess -match

Post by dpe » 04 Jul 2012, 04:52

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?

soliday
Posts: 393
Joined: 28 May 2008, 09:15

Re: Logical Operator in sddsprocess -match

Post by soliday » 09 Jul 2012, 10:49

Just put the option in quotes:

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

Post Reply