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 shell scripting used for?
What is a shell made of?
What is the difference between grep and egrep?
What is shell and shell script?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
Explain about sourcing commands?
What will happen to my current process when I execute a command using exec?
What is path variable bash?
How do I debug a shell script?
What are zombie processes?
What is the equivalent of a file shortcut that we have a window on a linux system?
Calculate a real number calculation directly from the terminal and not any shell script.
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Is powershell a language?
Is shell and terminal the same?