#!/bin/bash #Make a file executable for all #syntax: exe filename # if there aren't any parameters when you execute the script if [[ $# < 1 ]] then echo "You must specify a file!" else # if the parameter you specify exists if [[ ! -e $1 ]] then echo $1 "does not exist, or you didn't type the correct path." else chmod ugo+x $1 echo $1 "is now executable." fi fi