Tag Archives: Shell Script

Confirm The Input

In many case, when developing a menu system using shell script, it will be good to prompt the user to confirm that it is okay to run a script. for example: Are you sure to run this task? [Yes | … Continue reading

Posted in Shell Script | Tagged | Leave a comment

fgrep files and insert characters before & after the output

I’m preparing a Unix shell script to scan backup log and to check for failure code. If the directory backup is finished with failure, then the script must be able to pick-up the failed directory and write to an include … Continue reading

Posted in Shell Script | Tagged , | 1 Comment