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
Why do we use shell scripting?
How to open a read-only file in the shell?
What makes c shell a more preferable option than the bourne shell?
What is the significance of the shebang line in shell scripting?
What is another name for a bash shell script that you might see?
How to find duplicate record in file using shell script?
What lives in a shell?
Why are there shells on the beach?
What is k shell?
What are script files?
What is shell and terminal?
How to debug the problems encountered in the shell script/program?
What is path in shell script?
Is powershell a language?
What is a beat in a script?