#!/bin/bash if [ -r "$1" ]; then convert "$1" pnm:- | gocr - - else echo "Potřebuju název fajlu" exit 1 fi