bash

Bash unzip script

#!/bin/bash # script to decompress zips and copy used zips to dir # the important directories my_zip_dir=”/home/USER/zip_dir” my_pict_dir=”/home/USER/pict_dir” # the testing —————————————- # are there zip files ls *.zip > /dev/null 2>&1 if [ $? -eq 0 ]; then echo “zip files present, programm continues” else echo ERROR: no zip files found programm stops exit

Bash unzip script Read More »

Scroll to Top