On Fri, Mar 2, 2012 at 10:49 PM, Jaap Karssenberg <
jaap.karssenb...@gmail.com> wrote:
>
> You might want to use the HeadersDict class from zim.config. The read()
> method actually parses the lines and only strips lines that are actually
> headers. Much safer, because it will not change files that
On Fri, Mar 2, 2012 at 3:47 PM, Adam Porter wrote:
> This will process a directory tree and remove the first 4 lines of
> each file. I did a quick test on a copy of my tree, but please make
> sure to back up your data first, and if it blows up, it's your fault.
>
You might want to use the Head
On Fri, Mar 2, 2012 at 9:55 PM, Adam Porter wrote:
> Of course, then I remembered that old adage, "Those who don't know
> Unix are doomed to reinvent it, poorly." :)
>
> $ find . -iname "*.txt" | while read f; do tail -n +5 "$f" | cat >"$f";
> done
>
>
On Fri, Mar 2, 2012 at 9:55 PM, Adam Porte
Of course, then I remembered that old adage, "Those who don't know
Unix are doomed to reinvent it, poorly." :)
$ find . -iname "*.txt" | while read f; do tail -n +5 "$f" | cat >"$f"; done
On Fri, Mar 2, 2012 at 08:47, Adam Porter wrote:
> This will process a directory tree and remove the first
This will process a directory tree and remove the first 4 lines of
each file. I did a quick test on a copy of my tree, but please make
sure to back up your data first, and if it blows up, it's your fault.
:)
#! /usr/bin/env python
# Redistribution and use in source and binary forms, with or witho
On Wed, Feb 29, 2012 at 4:13 PM, Jaap Karssenberg <
jaap.karssenb...@gmail.com> wrote:
> I would say there is no way to do this, as zim will put them back as soon
> as you edit a page.
>
Thanks Jaap, I understand and am not asking for any changes to zim other
than putting it out there for genera
On Wed, Feb 29, 2012 at 3:05 PM, Jaap Karssenberg <
jaap.karssenb...@gmail.com> wrote:
>
> Let's start with the obvious question: why ? Zim needs these headers to
> function properly, and plan is to use them more in the future.
>
I haven't seen anything useful for my use of Zim, it's just annoyin
On Wed, Feb 29, 2012 at 7:57 AM, wrote:
> I'd like to be able to strip out the four-line (including the lat blank
> one) from all files in a given filesystem branch, or an entire notebook
> data tree.
>
Let's start with the obvious question: why ?
Zim needs these headers to function properly, a
8 matches
Mail list logo