943,708 Members | Top Members by Rank

Ad:
Oct 3rd, 2008
0

Bash script

Expand Post »
Hi to all the experts here, I am a true newbie on bash script and I have a couple of questions need to seek help:

1. What does "safe" delete command script means? I am confused with this statement:
Write a "safe" delete command script. Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed, then moved to a /home/username/trash directory.

Basically it is an assignment, does it means those file names typed in command line will not be deleted and compress it to tarz if it is not? How to implement it using file command? Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007
Oct 3rd, 2008
0

Re: Bash script

It means your script is suppossed to delete the files, but rather than actually deleting them, you will simply tar-gzip them and move them somewhere else. Essentially the "trash bin" process.
Last edited by masijade; Oct 3rd, 2008 at 4:17 am.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: Dynamically-created shell commands
Next Thread in Shell Scripting Forum Timeline: finding files for specified date





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC