Sujet : Re: Script to conditionally find and compress files recursively
De : gtaylor (at) *nospam* tnetconsulting.net (Grant Taylor)
Groupes : comp.os.linux.miscDate : 14. Jun 2024, 04:35:26
Autres entêtes
Organisation : TNet Consulting
Message-ID : <v4gdpu$cts$1@tncsrv09.home.tnetconsulting.net>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 6/13/24 04:55, D wrote:
perhaps have a little database that maps file type to compression algorithm
case ${FILE##*.} in
txt)
#...
;;
jpg|jpeg)
# Jpeg
;;
*)
echo "unknown file type"
;;
esac
;-)