12 lines
183 B
Bash
Raw Normal View History

2023-02-25 18:45:44 +01:00
#!/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