changeset 12:70c8234acaf3 draft default tip

Uploaded
author davidvanzessen
date Tue, 23 Jun 2015 07:52:44 -0400
parents 1b356cbde361
children
files imgt_loader.sh
diffstat 1 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/imgt_loader.sh	Tue Jun 23 07:52:29 2015 -0400
+++ b/imgt_loader.sh	Tue Jun 23 07:52:44 2015 -0400
@@ -11,6 +11,7 @@
 gzipType="gzip compressed"
 zipType="Zip archive"
 rarType="RAR archive"
+zxType="XZ compressed data"
 
 if [[ "$f" == *"$zip7Type"* ]]; then
 	echo "7-zip"
@@ -21,15 +22,15 @@
 if [[ "$f" == *"$tarType"* ]]
 then
 	echo "tar archive"
-	echo "Trying: tar xvf $input -C $PWD/files/"
-	tar xvf $input -C $PWD/$name/files
+	echo "Trying: tar -xvf $input -C $PWD/files/"
+	tar -xvf $input -C $PWD/$name/files
 fi
 
 if [[ "$f" == *"$bzip2Type"* ]]
 then
 	echo "bzip2 compressed data"
-	echo "Trying: tar jxf $input -C $PWD/files/"
-	tar jxf $input -C $PWD/$name/files
+	echo "Trying: tar -jxf $input -C $PWD/files/"
+	tar -jxf $input -C $PWD/$name/files
 fi
 
 if [[ "$f" == *"$gzipType"* ]]
@@ -52,6 +53,15 @@
 	echo "Trying: unrar e $input $PWD/files/"
 	unrar e $input $PWD/$name/files
 fi
+
+if [[ "$f" == *"$zxType"* ]]
+then
+	echo "ZX archive"
+	echo "Trying: tar -xJf $input -C $PWD/$name/files/"
+	tar -xJf $input -C $PWD/$name/files/
+fi
+
+
 find $PWD/$name/files -iname "1_*" -exec cat {} + > $PWD/$name/summ.txt
 find $PWD/$name/files -iname "5_*" -exec cat {} + > $PWD/$name/aa.txt
 find $PWD/$name/files -iname "6_*" -exec cat {} + > $PWD/$name/junction.txt