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
What is web script?
Write a command sequence to find the count of each word?
What is shell prompt?
Is shell scripting a programming language?
What is option in shell script?
What does $0 mean in shell script?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
What is echo in shell?
What is the use of "$#" in shell scripting?
What exactly is a shell?
What is a shell in operating system?
Write a script to print the first 10 elements of fibonacci series.
What is wc in shell script?
How do scripts work?
What are the types of script?