From 85601f555a3a57db44631706a25e0f933afd8551 Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 21 Dec 2022 01:06:18 +0200 Subject: works with different connections --- files-ppmtopng.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 files-ppmtopng.sh (limited to 'files-ppmtopng.sh') diff --git a/files-ppmtopng.sh b/files-ppmtopng.sh new file mode 100755 index 0000000..df33236 --- /dev/null +++ b/files-ppmtopng.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cd ${0%/*} # go to project root +set -xe + +for i in files/file*.ppm +do + pnmtopng "$i" >> "${i%.*}.png" +done -- cgit v1.2.3