#!/bin/bash #line 3 means here # cd "$(dirname "$0")" cd scans pwd convert *.jpg out.pdf