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 bash command used for?
What is the use of a shebang line?
Given a file find the count of lines containing the word "abc".
wats the deinitions for shell utility and filter?
What lives in a shell?
What does egrep mean?
How do I run a shell script on a mac?
How will you copy a file from one machine to other?
Why is used in shell scripting?
How do I start a shell script?
How do we create command aliases in a shell?
What will happen to my current process when I execute a command using exec?
What is the default ubuntu terminal?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is bourne shell scripting?