#!/bin/sh
for file in `ls test`; do
echo "`grep '^name:' $file | cut -d':' -f2`,`grep '^common.id:' $file | cut -d':' -f2`,`grep '^op_gw_rx.gw_routes.000.route:' $file | cut -d':' -f2`,`grep '^op_gw_rx.gw_routes.000.route:' $file | cut -d':' -f2`" | tr -d '"'
done
|