blob: 9a6ab847b9e094e1aee09b1e24fdb579984b9ec9 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
cmd="ls $1"
OUT=""
for name in `${cmd}`; do
if [ "${OUT}" != "" ] ; then
OUT="${OUT},"
fi
OUT="${OUT} \"${name}\" : { \"type\" : \"item\", \"action\" : \"${name}\"}"
done
echo "{ ${OUT} }"
|