Results 1 to 2 of 2
Hi guys.
I'm new to Linux and I have to create a fully functional Dust bin.
I have to write 3 scripts to get it work but I don't have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-27-2012 #1Just Joined!
- Join Date
- Nov 2012
- Posts
- 1
Linux Trash can scripts ***HELP***
Hi guys.
I'm new to Linux and I have to create a fully functional Dust bin.
I have to write 3 scripts to get it work but I don't have a clue where to start. Just started to learn it.
Any help would be very much appreciated a lot.
Thank you
These are the requirements:
1.
del <filename> - This script should move the file called <filename> to the dustbin directory in a manner that will allow the file to be restored to its original location later if necessary.
2.
trash [-a] - This script should remove the contents of the dustbin directory.
If the -a option is used the script should remove ALL files from the dustbin.
Otherwise, the script should display the filenames in the dustbin one by one and ask the user for confirmation that they should be deleted.
3.
restore <filename> - This script should move the file called <filename> back to its original directory without requiring any further user input.
If a file of that name already exists at the restore location, the script prompts the user to select an appropriate alternative action
- 11-27-2012 #2
Hello and Welcome!
This has the look of a homework question, which is against our Forum Rules.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.



