Overwriting a file with gzip

I am gzipping something within a bash script and need to get gzip to overwrite previous file. HOw do I pass a 'y' to it as I couldnt find an overwrite option in man file.
Something like this?
echo 'y' | gzip file
Regards

gzip -f file
man gzip

Similar Messages

  • How can I overwrite a file with the same name in Content DB?

    Hi All,
    In Content DB if I upload a file with the same name as a previous one, the application shows the warning message:
    " ...You cannot upload "XXXXXX.doc" to "Test 1" because an item with the same name already exists ..."
    And the alternatives are "Create Version" or "Cancel" the operation. Is there any way to overwrite a previous file as we can do it in Oracle Files ?
    Regards
    Harvey

    Hi All,
    Can anybody from the Content DB product development answer this question?
    Regards
    Harvey

  • How to save for web AND overwrite original files with Action?

    Hello,
    I want to compress a batch of images with "save for web" using a Photoshop Action, and I also want to preserve my folder structure and overwrite source files. The structure is important because it's complex and needs to be structured this way.
    The Problem:
    When I choose "save for web", I must define a destination. What happens is all optimized files from within the structure are saved in a single location.
    Here's an example of the folder structure
    Folder A
         - Subfolder A1
         - Subfolder A2
    Folder B
         - Subfolder B1
         - Subfolder B2
              -Subfolder B2.2
    Folder C
         -Subfolder C1
    Summary
    Is it possible for me to use a Photoshop Action with "save for web", and overwrite my files without moving them from the structure?

    No need to re-invent the wheel.
    Just learn how to use the Image Processor, Image Processor Pro, or Dr. Brown's Services 1-2-3 in Photoshop and/or Bridge.

  • Can't Overwrite Existing Files with Same Name - Likely a Mail Error?

    Couldn't find this on the forum... Hope I can explain this properly.
    When I design something and send a proof I will send a PDF through mail. When the revises come in I used to be able to just overwrite the existing files on my desktop and re-send through mail. But now programs won't let me overwrite files with the same name anymore. Basically the program says "overwrite existing file?" but then say "file is in use. Can't overwrite."
    Back in Leopard this used to happen when I would have a mail draft open that used the data of the file I sent or was about to send. I would just have to save the mail message as a draft and the file was "no longer in use" so I could proceed as usual. But now it does this all the time regardless.
    Did this make sense? It's kind of hard to explain... But basically now when I want to send a revised file (and this can happen dozen of times in a day) I have to trash the existing file I want to overwrite. Or rename the file, which is confusing for me and my clients.
    Any thoughts?

    I have the same situation as you - sending out pdfs of designed pages and wanting to overwrite them continually. It used to happen on an older version of Mail, then it disappeared and now it's back with the latest version.
    It's more than annoying, it's downright driving me nuts. In the last hour I had to quit Mail seven times.
    Please send a fix for this Apple.

  • Contribute CS4 is overwriting my files with a blank page

    Hello,
    I'm hoping that someone can help resolve this issue we're having with Contribute CS4. My client has successfully used the software for several months and recently the issue started.
    Now, when he tries to publish a page that he has made edits to, Contribute overwrites the previous file (HTML file) and puts a completely blank HTML page in it's place. He's using a Windows XP PC and the hosting (Network Solutions) is fine. I can connect using my FTP client and am able to make edits using Dreamweaver CS4.
    He gets an error message that says:
    “Contribute encountered a network or file system error.  Please try the operation again, and contact the administrator if the problem continues to occur.”
    Thanks for any help in advance!
    - Al
    http://www.ampatentdrawings.com/

    Do you Know how to Close a app in the Background? Try this at First
    If Same issue, restart
    If still Same issue, reset (hold Home+powerbutton for a VEW seconds, Till you See the Apple)

  • Download and overwrite existing file with same name

    Is there a way to tell Safari to erase previous versions of downloads, ie not adding a '-1' or '-n' to the file name, but overwrite an already existing file?

    I was going to say "hurrah!" but..... no.
    I does ask me for the file name, it does ask me if I want to replace, but it does not replace the file, and just saves it in dummy-1.ppt.
    Funny thing: it has the expected behaviour for pdf files, where replacement actually occurs.
    Bug report sent.

  • File Save after clicking in script output overwrites file with output

    This is bad:
    If you run a file as script and afterwards click on the output window,
    even if you click back on the script window,
    the Ctrl+S (or even worse the File > Save menu option)
    overwrites your file with the script output.
    You only realize this when you reopen the file, or if you use another editor with auto-refresh, such as Crimson Editor.

    Here is how to replicate the disappearing sql script:
    In the Save dialog box, if the “.sql” is left off of the file name, only the script output is saved (this is bad).
    If the file name ends in “.sql”, the script and the script output are saved (this is good).
    I have no idea what the purpose of this feature is, and it has caused me much grief. I hope the next version of SQL Developer does it better.

  • How to delete or overwrite .csv file

    hi...
    i need some help here..can anyone teach me how to delete or overwrite an existing .csv file.?..in my .csv file there will be two columns which is column 1( 8 length) and 2 column ( 4 length).
    please...i need the answer asap..really appreacite your help..thanks...

    Well, deleting or overwriting a file should not depend on the size of the columns. You just overwrite the file with the new data. What have you tried so far?
    If you want to overwrite individual data points, you would read the file, modify the data in memory, and overwrite the file with the changed data. Overwiting individual values directly is only recommended for binary files unless you can guarantee that each value occupies a fixed number of characters and the offset can be calculated from first principles.
    LabVIEW Champion . Do more with less code and in less time .

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

  • GPP File Copy overwrite newer file

    I don't know if im doing something wrong, or this is a feature, but does File copy from GPP, overwrite the destination file, even if the destination has newer time stamp?
    I actually want this to happen, but it is not. Hence, I am assuming if the destination file is newer, then it does not copy.
    Thanks,
    DM

    > Does GPP file copy run with SYSTEM or USER credentials, when you do not
    > enable "Run in logged-on user's security context"?
    SYSTEM
    > Tried to copy a file to C:\Windows area (with a non-admin account), and
    > seemed to fail.
    Some files (as well as some registry keys) are owned by Trusted
    Installer - even SYSTEM lacks write access to them. And of course, you
    cannot overwrite a file with open handles :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Copy files with same name. Can't overwrite it.

    I need to periodically generate and copy a .txt file into a folder. The name of the files, when generated, is the same. How can I copy it without overwriting previous files that already are in the folder.

    magaupe wrote:
    I need to periodically generate and copy a .txt file into a folder. The name of the files, when generated, is the same. How can I copy it without overwriting previous files that already are in the folder.Use a different name? Maybe append a number to it, or add a ".bak" extension or something?
    (I use question marks 'cause I am not sure I fully understand your problem - if you are generating the names of these files then can't you change the name of the copied one?)

  • AppleScript open and save file with Numbers

    Hi all,
    I need to save an Excel .xls file as an .xls file in order to break the links that are included in the original Excel file. Since Numbers doesn't have any actions for Automator, I hoped someone could help me writing an AppleScript?
    It needs to open (Numbers) and all the .xls files that are added to a specific folder on my Mac, then save them to another folder as .xls (not .xlsx) and overwrite any existing files with same name. Since this all should work automatically, warnings and pop-ups that need a user to click an option are not allowed.
    Didn't think this could be too hard, but I'm just a noob when it comes to AppleScript. Help?
    Thanks in advance

    Check the attributes of the <textarea> tag. You can use wrap="no" or wrap="virtual" or wrap="hard" to define how the text area handles carriage returns.
    Brian

  • How do I get PSE 12 to save a TIFF file with file extension ".tiff" instead of ".tif"?

    I am using PSE 12 as an external editor for Aperture.  When I ask to use an external photo editor, Aperture creates a .tiff file in my Aperture folder, launches PSE 12 and tells it to edit that .tiff file.  This all works great.  When I am done editing in PSE 12, I ask it to save the file and it saves it back to the original Aperture folder with a .tif extension.  I can instead say "save as" and then it suggests the file name with a .tif extension.  When I correct the extension to .tiff it warns me that I'm going to overwrite the file (exactly what I want!).  I say yes and then I find out that PSE did not overwrite the file, but wrote it as a .tif file anyway.  I have to go to the folder, delete the .tiff file and rename the .tif file to .tiff and then everything is fine - but what a hassle.  Has anyone solved this problem?

    That's not quite where the problem lies, which is good, because you can't change that. The real solution is that you don't ever want to see the save as window in PSE if you are using PSE as external editor for any program. When you see it you aren't creating a version for your asset management program. Go to the PSE preferences>saving files>on first save and choose to save over existing file. That should do what you want.

  • How can I create a zip file with LabVIEW?

    I would like to compress my data (ASCII format) to an archive.
    I use LVZlib.vi to compress and decompress data but I would like to be able to read the output file with a software archiver such as PowerArchiver/WinZIP.
    Someone knows how I can create a file compatible with zip or gz standard format, thanks !

    >> Yes but I have to install a special archiver (with ms-dos ommand line ability
    >> such as pkzip,arc,rar,arj...) on the computer where I install my LV application.
    Search for "gnu tools for windows" and get zip.exe, gzip.exe, bzip2.exe and others (even the source, if you like). These are about 50kB files that run in place (no installation) - easy to include in a distributed app. Oh, since I'm logged in I'll attach a couple, though I don't have the source on this machine).
    Attachments:
    bin.zip ‏67 KB

  • After installing latest update Realplayer recording no longer works, I think Mozila is using a library file with the same name

    After installing the latest update to Firefox onto Vista operating system the record part of real player no longer works, I think Mozila and Real are using a library file with the same name and the Mozila update is overwriting a Realplayer library file.

    I was giong to say, "Help me, Adobe Joe Kenobi", but it looks like you're growing a beard waiting for an answer, too.
    The same thing happened to me today. I trusted the "update" message since it was from Adobe, and apprently did so at my own peril. Now I get the "failed to load Core dll" message with a secondary reference to a memory address.
    Just an observation, but what good are these forums when there are no answers? I see this problem as "Caused by Adobe Update", and would expect them to troublshoot and offer up a remedy. Since you've been waiting over two months with no response, I suppose it's time to trek off wasting more of my precious time to fix their problem. If I find the solution, I'll post it back to you.
    May the Force be with you.
    Mark

Maybe you are looking for

  • Report Script and UTF8 in 9.3.1

    Hi guys, I have an issue with report scripts and UTF8 in 9.3.1. Basically my problem is that if I run the RS from EAS, the output is a txt file in UTF8. If I run it through Esscmd, the output is a ANSI txt. I need to info to load a non UTF Cube. I us

  • Read this and free up 300GB or more of wasted After Effects disk cache space...

    I noticed on my MAC that the After Effects disk cache folders took up 400GB of space, even though I told it to only use 100GB. I run my disk cache on an SSD so space is valuable. I investigated and realized that every time After Effects has a new ver

  • Can't add 3rd Party Plug-ins

    I am using iMovie 05 HD ver 5.02 and I can't find the Plug-ins folder to add my 3rd party plugins to. I have done a spotlight search and cant find this folder. Other forums about plugins have said this folder is in the path user/library/iMovie/Plug-i

  • RAW File Issues

    Shot some photos (not in Live View) on Nikon D800 today - uploaded these NEF Files into LR4 with no problems & after downloading & installing Adobe Release Candidate Software Updates was able to open these files in Adobe Photoshop 5.1 but not in Adob

  • Subcontracting material issue

    Hi i got some process error i have created a SC PO aganist which i have to issue material to vendor is 100 but i have issued 50 pc of component again when i do goods issue aganist PO system is showing 100 pc instead of 50 and this issue 541 against P