#!/bin/sh cd lists mkdir -p qq ls *.ipk | while read f do rm -f qq/* cp $f qq/ cd qq ar x $f mv data.tar.gz ../${f%.ipk}.tgz cd .. done rm -rf qq