I got a zip file from the government but it won't unzip properly

kitepilot at kitepilot.com kitepilot at kitepilot.com
Thu Jul 25 15:24:09 MST 2013


do:
sed -i -e 's/[[:space:]]*$//g' file-to-fix
To get rid of '^M'.
ET 


Michael Havens writes: 

> cool..... vi opens it. I do not see any '^@' characters but I see a lot of
> '^M' characters. I see a few '@' characters. So I do not need to worry
> about those characters.... only the non ascii ones?
> :-)~MIKE~(-: 
> 
> 
> On Thu, Jul 25, 2013 at 2:42 PM, Paul Mooring <paul at opscode.com> wrote: 
> 
>>  There's some null characters (look like ^@ in vim) in this file causing
>> your problem, run `file -I <file_name>` and you'll see it's charset is
>> binary.  I found some null chars on line 155 (grep for non-ascii characters
>> to find them).  You can remove them with sed or tr and be on your happy way. 
>>
>>
>>  Paul Mooring
>> Operations Engineer
>> www.opscode.com 
>>
>>  ------------------------------
>> *From:* plug-discuss-bounces at lists.phxlinux.org <
>> plug-discuss-bounces at lists.phxlinux.org> on behalf of Michael Havens <
>> bmike1 at gmail.com>
>> *Sent:* Thursday, July 25, 2013 2:09 PM
>> *To:* plug-discuss at phxlinux.org
>> *Subject:* I got a zip file from the government but it won't unzip
>> properly 
>>
>>  It seems to unzip fine but the document that opens freezes libre writer
>> and when I try to open it with a  text editor it complains about encoding.
>> here is the file: 
>>
>>  https://www.dropbox.com/s/q5x24uzhyrv3mo1/az-foiarefund-list.zip 
>>
>>  Any ideas how to open it?
>> :-)~MIKE~(-: 
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss 
>>


More information about the PLUG-discuss mailing list