Evan’s posterous

Adventures in pomodoro and other such things 
Filed under

bash

 

simple bash script template to process a file

#!/bin/bash
 
if [[ "$#" == 1 && -f $1 ]];
then
 # replace with something functional like 'rm -f $1'!
 echo "file $1 exists"
else
 echo "Usage: $0 "
fi

Filed under  //   bash   linux   script   template  

Comments [0]