All pastes #411433 Raw Edit

Untitled

public shellscript v1 · immutable
#411433 ·published 2007-03-27 00:49 UTC
rendered paste body
#!/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"