[Cialug] Text file munging
David Champion
dave at dchamp.net
Thu Jun 18 13:13:31 CDT 2009
Oh... missed the part where the # of lines varies. Sorry. :(
-dc
David Champion wrote:
> Write a script to loop thru the files, do a:
>
> head -n -2 oldfile > newfile
>
> -dc
>
> Dave Weis wrote:
>
>> I have a bunch of individual email messages from mail.app that have been
>> disassociated from their mailbox. I have tried copying them into the
>> messages folder but they don't go because of two lines in the plist at the
>> end. I need to remove
>> <key>remote-id</key>
>> <string>4294</string>
>> from 20,000 files. The number varies and the location at the end of the
>> file can move a few lines at a time. I've tried my regex magic on it but
>> don't have enough to get it working. Any help?
>>
>>
>>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>
More information about the Cialug
mailing list