Untitled
public shellscript v1 · immutable#!/bin/bashDEB=$1DIR=$(echo $DEB | sed 's/\.deb//')#Solves for already existing DIRNUM=0while [ -d $DIR ] ; do let NUM=$NUM+1 DIR=$DIR"_$NUM"done#Attach the / to the DIRDIR=$DIR"/"#Extract data files and then control filesdpkg -x $DEB $DIR && dpkg -e $DEB $DIR"DEBIAN"