res-txtTOh.sh 213 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
tam=$(cat $1|wc -l )
echo "double golden["${tam}"][4]={"
#for i in  $1 do
#	echo "{"${i}"}"	
#done
sep=
while IFS= read -r line
do
   ## take some action on $line
  echo $sep"{$line}"
  sep=,
done < $1
echo "};"