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
Post a Comment