i have a shell scirpt that should run in the subfolder (depth = 2). but it does run in the top level folder

- Code: Select all
gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=fileout.pdf \
*.pdf

thanks!
Moderator: Mr_Noodle
gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=fileout.pdf \
*.pdf
gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="$1"/fileout.pdf \
"$1"/*.pdf