Skip to content
Snippets Groups Projects
Commit 036d1974 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Be a bit more picky about files to enclose.

parent a5a88706
Branches
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ To trawl through looking for bulletin source distros (using the ...@@ -28,7 +28,7 @@ To trawl through looking for bulletin source distros (using the
``` ```
for f in *.zip; do for f in *.zip; do
unzip -l $f 2> /dev/null | grep -qi bulletin && echo $f; unzip -l $f 2> /dev/null | grep -qi /bulletin && echo $f;
done done
``` ```
...@@ -39,8 +39,8 @@ copied down the relevant bits of the zip files which I extracted like so: ...@@ -39,8 +39,8 @@ copied down the relevant bits of the zip files which I extracted like so:
``` ```
for f in *.zip; do for f in *.zip; do
unzip -l $f 2> /dev/null | grep -qi bulletin \ unzip -l $f 2> /dev/null | grep -qi /bulletin \
&& unzip $f $(unzip -l $f | grep -i bulletin | awk '{print $4}'); && unzip $f $(unzip -l $f | grep -i /bulletin | awk '{print $4}');
done done
tar jcf decus.tar.bz2 decus tar jcf decus.tar.bz2 decus
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment