#!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek G. Gite # # Latest version can be found at http://www.nixcraft.com/ # # Q11 if [ $# -ne 1 ] then echo "Usage - $0 file-name" exit 1 fi if [ -f $1 ] then echo "$1 file exist" else echo "Sorry, $1 file does not exist" fi # # ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool # See the tool at http://www.nixcraft.com/uniqlinuxfeatures/tools/ #