09/07/14 19:17:06
>>78-79
awkはシェルにあらず。
シェルスレならシェルで解決。
#!/bin/sh
IFS=,
while read line
do
set $line
case $1 in A_table):;;*)continue;;esac
shift
max=$1
shift
eval out='$'$#
i=1
while [ $i -lt $max ]; do
echo -n "$1",
shift
i=`expr $i + 1`
done > "$out"
echo "$1" >> "$out"
done