12 lines
183 B
Bash
Executable File
12 lines
183 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for f in out-*.bz2 ; do
|
|
echo "Check file $f"
|
|
if bunzip2 -c "$f" &> /dev/null ; then
|
|
echo "$f is a BZ2 file !!!"
|
|
echo "=> out"
|
|
bunzip2 -c "$f" > out
|
|
exit
|
|
fi
|
|
done
|