#!/usr/bin/kshecho " File name please : "read FILENAME;dataDir=/u01/app/oracle/dpump; ### Directory to look for a file ###sourceFile=SCOTT.dmp; ### file name to search for ###cd /u01/app/oracle/dpump;echo " Present directory : " `pwd`"";##Did we get a file?if [ -e ${dataDir}/${sourceFile} ];thenecho "Found file !! "elseecho " No file found !!! "fi |
“Knowing others is intelligence; knowing yourself is true wisdom. Mastering others is strength; mastering yourself is true power.” Arvind Toorpu
Thursday, November 5, 2015
Shell script - Check if the files exists in a file
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment