#!/bin/bash ARG_1=`echo $QUERY_STRING | awk -F [=,\&] '{ print $1; }'` ARG_2=`echo $QUERY_STRING | awk -F [=,\&] '{ print $2; }'` ARG_3=`echo $QUERY_STRING | awk -F [=,\&] '{ print $3; }'` ARG_4=`echo $QUERY_STRING | awk -F [=,\&] '{ print $4; }'` ARG_5=`echo $QUERY_STRING | awk -F [=,\&] '{ print $5; }'` ARG_6=`echo $QUERY_STRING | awk -F [=,\&] '{ print $6; }'` ARG_7=`echo $QUERY_STRING | awk -F [=,\&] '{ print $7; }'` ARG_8=`echo $QUERY_STRING | awk -F [=,\&] '{ print $8; }'` echo -e "\ \ \ \ \ \ \ " >/tmp/nodes_csv_rel_req REQUEST_METHOD= /home/roland/osm-3s/cgi-bin/interpreter /tmp/nodes_csv_rel_result.1 RESPONSE_TYPE=`head -n 1 /tmp/nodes_rel_csv_result.3 mkdir /tmp/nodes_csv_rels while read -u 3 REL; do { echo -e "\ \ \ \ \ \ \ \ \ \ " >/tmp/nodes_csv_req REQUEST_METHOD= /home/roland/osm-3s/cgi-bin/interpreter /tmp/nodes_csv_result.1 RESPONSE_TYPE=`head -n 1 /tmp/nodes_csv_rels/$REL }; fi if [[ $ARG_2 == "backward" ]]; then { gunzip /tmp/nodes_csv_rels/$REL }; fi if [[ $ARG_2 == "all" ]]; then { gunzip /tmp/nodes_csv_rels/$REL }; fi }; done 3