Script
#!/bin/bash
#name: filecheck.sh
#simple script to find out the file exists or not
if
[ -f $1 ]
then
echo
" $1 exists "
else
echo
" $1 does not exist"
fi
Script usage: ./filecheck filename
Posted by PNA Prasanna at 10:03 AM
Labels: Shell Scripts
LinuxOcean © All rights reserved. |
0 Comments:
Post a Comment