Need help writing a shell script
I'm just now trying to learn how to write shell scripts and would like some help. At our radio station, I needed a script that would copy our QuickBooks file, (running under Win4Lin), to back up to a usb reader writer stick.
I'm just now trying to learn how to write shell scripts and would like some help. At our radio station, I needed a script that would copy our QuickBooks file, (running under Win4Lin), to back up to a usb reader writer stick. The script, which is called "QBsave" is:
Code:
And when you click "yes" the file is overwriten, and when you click "no", it isn't.
Anyone know how to do this? Thanks for any help.
Code:
#!/bin/bashcp win/Program\ Files/Intuit/QuickBooks\ Pro/Wzla.QBW /mnt/usbstick/QBsaveWhen we execute this shell script from the IceWM menu, it does the job, although I'd like for it to do a little more. I would like a small window to come up which asks: "The file, "QBsave" already exists. Do you wish to overwrite it?"
And when you click "yes" the file is overwriten, and when you click "no", it isn't.
Anyone know how to do this? Thanks for any help.
Participate on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.