rajangupta2387
Programmer
Can anybody help me in writing a script which does the following;
- the script moves files passed in the argument to /backup/BACKUP_EL603/TRASH/
- the script accepts wildcards
- the script displays the number of files moved using the following format:
empty line
<x> files have been moved to /backup/BACKUP_EL603/TRASH/
empty line
- the script accepts the word TRASH as an argument: in this case, it deleted all files older than 2 weeks present in the TRASH directory
- the script requires at least 1 argument; if no argument is supplied the following message needs to be displayed:
empty line
Usage: <script_name> file
empty line
ex: del my_dummy_file.txt
empty line
- the script can be called from any location (without using the full path)
- possible name for the script: del
During the testing phase the behavior of the script needs to be checked also on directories and soft links.
- the script moves files passed in the argument to /backup/BACKUP_EL603/TRASH/
- the script accepts wildcards
- the script displays the number of files moved using the following format:
empty line
<x> files have been moved to /backup/BACKUP_EL603/TRASH/
empty line
- the script accepts the word TRASH as an argument: in this case, it deleted all files older than 2 weeks present in the TRASH directory
- the script requires at least 1 argument; if no argument is supplied the following message needs to be displayed:
empty line
Usage: <script_name> file
empty line
ex: del my_dummy_file.txt
empty line
- the script can be called from any location (without using the full path)
- possible name for the script: del
During the testing phase the behavior of the script needs to be checked also on directories and soft links.