Linux script to Implement, as a script, a “safe” delete command

Implement, as a script, a "safe" delete command, Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed (use file to check), then moved to a ~/TRASH directory. Upon invocation, the script checks the ~/TRASH directory for files older than 48 hours and permanently deletes them.


In Progress 07-12-2019 Zeeshan 766

Please briefly explain why you feel this question should be reported .

Answers (0)

Leave An Answer

app logo

Download Our App!

Enjoy all the features. Browse jobs, articles, questions, scholarships and many more! in just one App