Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #56528
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!i2pn.org!rocksolid2!i2pn2.org!.POSTED!not-for-mail |
|---|---|
| From | D <nospam@example.net> |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Script to conditionally find and compress files recursively |
| Date | Tue, 11 Jun 2024 10:51:45 +0200 |
| Organization | i2pn2 (i2pn.org) |
| Message-ID | <2e0ae86d-ae03-5231-b2c3-1da13d22de72@example.net> (permalink) |
| References | <v48s96$u6fg$1@dont-email.me> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII; format=flowed |
| Injection-Info | i2pn2.org; logging-data="3844917"; mail-complaints-to="usenet@i2pn2.org"; posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M"; |
| In-Reply-To | <v48s96$u6fg$1@dont-email.me> |
| X-Spam-Checker-Version | SpamAssassin 4.0.0 |
| Xref | csiph.com comp.os.linux.misc:56528 |
Show key headers only | View raw
On Tue, 11 Jun 2024, J Newman wrote: > Hi, I'm interested in writing a script that will: > > 1. Find and compress files recursively > 2. After the first 5 seconds of compressing, if the compression ratio >1 > (i.e. the compressed file will be larger than the uncompressed file), it > tries another compression algorithm. > 3. If the other compression algorithm still has a ratio >1, it tries another > algorithm, until a list is exhausted. > 4. If the list is exhausted, it skips compressing that file. > > Any suggestions on how to proceed? > Difficult to estimate compression ratio without analyzing the entire file. In theory you could say something based on the file type, but that's the best I can come up with.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Script to conditionally find and compress files recursively J Newman <jenniferkatenewman@gmail.com> - 2024-06-11 14:53 +0800
Re: Script to conditionally find and compress files recursively D <nospam@example.net> - 2024-06-11 10:51 +0200
Re: Script to conditionally find and compress files recursively Joe Beanfish <joebeanfish@nospam.duh> - 2024-06-11 14:58 +0000
Re: Script to conditionally find and compress files recursively Grant Taylor <gtaylor@tnetconsulting.net> - 2024-06-11 22:21 -0500
Re: Script to conditionally find and compress files recursively Richard Kettlewell <invalid@invalid.invalid> - 2024-06-12 08:17 +0100
Re: Script to conditionally find and compress files recursively D <nospam@example.net> - 2024-06-12 10:13 +0200
Re: Script to conditionally find and compress files recursively J Newman <jenniferkatenewman@gmail.com> - 2024-06-13 12:46 +0800
Re: Script to conditionally find and compress files recursively D <nospam@example.net> - 2024-06-13 11:55 +0200
Re: Script to conditionally find and compress files recursively Grant Taylor <gtaylor@tnetconsulting.net> - 2024-06-13 22:35 -0500
Re: Script to conditionally find and compress files recursively D <nospam@example.net> - 2024-06-14 11:07 +0200
Re: Script to conditionally find and compress files recursively J Newman <jenniferkatenewman@gmail.com> - 2024-06-13 12:43 +0800
Re: Script to conditionally find and compress files recursively Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2024-06-13 10:13 +0300
Re: Script to conditionally find and compress files recursively D <nospam@example.net> - 2024-06-13 11:55 +0200
Re: Script to conditionally find and compress files recursively not@telling.you.invalid (Computer Nerd Kev) - 2024-06-14 09:06 +1000
Re: Script to conditionally find and compress files recursively not@telling.you.invalid (Computer Nerd Kev) - 2024-06-14 12:25 +1000
Re: Script to conditionally find and compress files recursively J Newman <jenniferkatenewman@gmail.com> - 2024-06-15 11:30 +0800
csiph-web