sddsselect APS.twi quadNames.sdds APSquad.twi -match=ElementName -reuse
where ElementName is a column in both APS.twi and quadNames.sdds giving the name of a magnet. Use the same file to get the Twiss parameters everywhere but at the quadrupoles:
sddsselect APS.twi quadNames.sdds APSnquad.twi -match=ElementName -reuse -invert
sddsselect [-pipe[=input][,output]] [input1] input2 [output] {-match=columnName1[=columnName2] | -equate=columnName1[=columnName2] } [-invert] [-reuse[=page][,rows]] [-noWarnings]