Re: [Zim-wiki] howto strip metadata header

2012-03-02 Thread Adam Porter
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

Re: [Zim-wiki] howto strip metadata header

2012-03-02 Thread Adam Porter
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 a...@alphapapa.net wrote: This will process a directory tree and remove

Re: [Zim-wiki] howto strip metadata header

2012-03-02 Thread Jaap Karssenberg
On Fri, Mar 2, 2012 at 3:47 PM, Adam Porter a...@alphapapa.net 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