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 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.
> :)

Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp

Reply via email to