to include a piece of code in existing unix script -


i have filewatcher.txt file . want include piece of code in existing unix script(final) ask user input(y/n) check whether file has been renamed(*filewatcher.txt e.g.sav_filewatcher.txt or xyz_filewatcher.txt ) or original name(filewatcher.txt) exists. if file watcher has not been renamed existing code(final) exit.

i'm not positive understand you're looking do, here few basic scripting tips:

if [ -f "filewatcher.txt" ];   echo "file has not been renamed" fi  echo "please give me input" read var echo "your input $var" 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -