Crombie Tools
downloadtar.sh
Go to the documentation of this file.
1
#!/bin/bash
2
3
wget -O CrombiePlots.tar.gz
"$1"
# Get the tar file from the input URL
4
5
tar -xzf CrombiePlots.tar.gz
# Extract the tar file
6
7
for
dir
in
`ls plots`
# For each directory
8
do
9
10
if
[ ! -d $dir ]
# Make directories that are missing
11
then
12
13
mkdir $dir
14
15
fi
16
17
mv plots/$dir/* $dir/.
# Move output out of plots
18
rmdir plots/$dir
# Remove the subdirectory
19
20
done
21
22
rmdir plots
# Clean up the directory
23
rm CrombiePlots.tar.gz
# and tarball
scripts
noauto
downloadtar.sh
Generated on Tue Nov 3 2020 04:04:03 for Crombie Tools by
1.8.12