1 2 3 4 5
#!/bin/bash curl -X GET $OSM_API/node/$1/ways |\ tee /tmp/osm &&\ echo ways contain node $1 are copied into /tmp/osm > /dev/tty