Invision Power Services: gzip - Invision Power Services

Jump to content

Computing & Technology Forum Rules

Our community chat forum areas are for off-topic discussion only. Please do not post topics about IPS or its products and services here. We provide other forum areas for IPS discussion.

Do you need technical support on IPS products or services?

You can obtain support via the client area, or you can try to obtain peer-to-peer support at IPS Resources.

Did you find a bug in one of our products?

If you believe you've found a bug please post it to the bug tracker.

Have a suggestion or feedback?

Use the company feedback forum or appropriate product feedback forum. You can also submit a ticket in your client area if it's a private matter.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

gzip keeping original file Rate Topic: -----

#1 User is offline   Coastie Icon

  • Greytalk.com
  • Icon
  • View blog
  • View gallery
  • Group: +Active Customers
  • Posts: 2,042
  • Joined: 13-February 02

Posted 03 August 2005 - 01:45 AM

I am trying to use gzip to compress a file, yet keep the original file without changing it to the *.gz file

Much like the -k switch with bzip2

is this possible with gzip?
Posted Image
0

#2 User is offline   megaspaz Icon

  • IPB Full Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 119
  • Joined: 30-November 02

Posted 03 August 2005 - 02:35 AM

View PostCoastie, on Aug 2 2005, 06:45 PM, said:

I am trying to use gzip to compress a file, yet keep the original file without changing it to the *.gz file

Much like the -k switch with bzip2

is this possible with gzip?


send the output to stdout and redirect it to your target gzip file.

gzip -c file > file.gz

0

#3 User is offline   Coastie Icon

  • Greytalk.com
  • Icon
  • View blog
  • View gallery
  • Group: +Active Customers
  • Posts: 2,042
  • Joined: 13-February 02

Posted 03 August 2005 - 10:44 AM

that was not working for me, along with displaying garbage output on my screen, it also removed the original file turning it into the *.gz file.

I did come across this, and it has worked.

cat filename | gzip > filename.gz

Posted Image
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users