#!/bin/bash if [ ! $1 ]; then echo "Hey! You have to give me an input file."; else x-povray -I$1.pov +V +D0 +P +X100 +FP16 +O$1.ppm; if [ -O $1.pov ]; then chmod 644 $1.pov; fi fi if [ -e $1.ppm ]; then mv $1.ppm images; fi