Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Shell Script menu driven program
Name: pochohantas Date: December 15, 2008 at 05:52:53 Pacific OS: Windows Vista CPU/Ram: Intel Pentium/4GB Product: Sony VAIO
Comment:
I need some help with writing a shell script menu driven application. Am I correct that I have to write the codes first and save and then write the executable file?
The menu has to have 4 choices. One choice allows the user to backup all of the files in their home directory into a special backup directory. If the backup directory does not exist, my script should create it. If the backup directory is not empty, a message should be displayed to the user that it is not empty and ask the user if they want to delete all files. If they say yes, delete the files and perform the backup. If they say no, display a message that the backup was not performed.
Can someone please tell me how to begin with this project. I am using the sh shell. Am I going to first write the codes in vi editor and save? Any help is appreciated.
Summary: i need to make a shell script that will take in two parameters: a directory and a size. it'll look somthing like this: filesize [dir] [size] (*where filesize is the name of the script*) this script ...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4 Output file: (all in one line now) Line1Line2Line...