how to compress ~130GB folder and erase original files at the same time
Hello, I'm running FC6 on a dual core 2.8GHz pentium-D machine with 3.5GB RAM. I have about 8GB free on a 250GB hard disk, with one folder taking up about 130GB (almost entirely text data files). To free up some space, I want to compress this folder and get rid of the original files. But since the zip file will likely be larger than the 8GB free space in the hard disk, I can't simply zip it and then remove the original files. Is there a command to compress and remove original files at the same time on the fly? Or should I need to write a shell script that takes one file at a time, adds to an archive and deletes the original (I'm guessing this would take forever...)?
Thanks in advance.