home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.ubuntu      I preferred Xubuntu, seemed a bit faster      134,477 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 134,476 of 134,477   
   George to JR Dolobson   
   Re: compressing and password protect fil   
   06 Mar 26 22:55:32   
   
   From: invalid@invalid.invalid   
      
   On 06/03/2026 21:40, JR Dolobson wrote:   
   > In Ubuntu, right now I'm selecting each individual file (left   
   > clicking), right clicking and choosing compress, keeping same file   
   > name, and then entering password, then create but this is going to   
   > take a long time for well over a hundred files!  I don't want to   
   > create a new archive name for the group as this will mean that all   
   > would have to be unzipped later.  I just want to keep original file   
   > names.  thanks   
      
      
   Try this:   
      
   #!/usr/bin/env bash   
   for f in *; do [[ -f "$f" && ! "$f" =~ \.gz$ ]] && gzip -9 "$f"; done   
      
   ,gz doesn't support passwords!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca