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,474 messages   

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

   Message 133,513 of 134,474   
   Dan Purgert to All   
   Re: how to incorporate gzip lines with m   
   05 Nov 23 15:07:03   
   
   From: dan@djph.net   
      
   On 2023-11-05, bilsch01 wrote:   
   > On 11/2/2023 3:39 AM, Paul wrote:   
   >> [...]   
   >> With gzip, you have to be careful of the syntax,   
   >> so the original file is not deleted. That's what I spent   
   >> most of my time playing with, is checking for deletion.   
   >   
   > Can you be more specific about what syntax will result in deletion of   
   > original file?   
      
   Any invocation on a file (i.e. NOT piped input) that does not include   
   the '-k' switch.   
      
     gzip file.txt <-- will create file.txt.gz, and delete file.txt   
     gzip -k file.txt <-- will create file.txt.gz, and KEEP file.txt   
      
      
   Piped input (e.g. 'command | gzip ') has no file to keep in the first   
   place.   
      
   --   
   |_|O|_|   
   |_|_|O| Github: https://github.com/dpurgert   
   |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860   
      
   --- 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