OSMembrane
osmosis --read-xml file="planetin.osm" outPipe.0="mypipe" --write-xml file="planetout.osm" inPipe.0="mypipe"
Now there’s one way to control Osmosis effectively: using (OS)Membrane.
OSMembrane was developed by Christian Endres, Jakob Jarosch and Tobias Kuhn at the University of Stuttgart during a practical training task initiated by Igor Podolskiy who also provided the bbox-chooser component.
The current release version can be found here. OSMembrane and its source code is released under a GNU GENERAL PUBLIC LICENSE (Version 3, 29 June 2007).