#! /bin/sh #work with SAGEM_Fast800_v3_0_4b.zip if [ $# != 1 ] then echo usage : $0 /absolute/path/SAGEM_Fast800_vxxxx.zip exit 1 fi FINAL_DIR=/tmp/final TEMP=`mktemp -d -p /tmp` cd $TEMP unzip $1 cd */tools/ unshield x data1.cab mkdir $FINAL_DIR mv ./IDMA_Files/ ./FPGA_Files/ ./USB_Driver_CMV_Files/ CpeList.txt ./autorun/*/ $FINAL_DIR rm -rf $TEMP echo file extracted in $FINAL_DIR