ipcrm `ipcs | awk '{if (($1 == "m") || ($1 == "s")) printf(" -%s %s ",$1,$2) }'`
