Hi,
i want to zip the files that generates automatically
every few minutes (files generated are in .arc
extension)....any body write a script for this...
thanks in advance
Answer Posted / vipul dalwala
while true
do
THIRDFILE=`ls -t | sed -n '3p'`
find . -name '*.arc' ! -newer ${THIRDFILE} -exec gzip {}
\;
sleep 300
done
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Print the 10th line without using tail and head command.
What is a shell in operating system?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
Is scripting and coding the same thing?
Explain about "s" permission bit in a file?
What does $1 mean in bash?
What are the two files of crontab command?
What is wc in shell script?
How do I open the shell in cmd?
Explain about debugging?
How do I run a bin bash script?
How do I run a .sh file on mac?
What is scripting autism?
how will you find the total disk space used by a specific user?
How to use arguments in a script?