Ask Your Question

how to remove first 5 lines of doc automatically [closed]

asked 2012-09-09 02:01:51 +0100

riow gravatar image

updated 2015-10-28 02:30:08 +0100

Alex Kemp gravatar image

I'd like to use command line to remove first 5 lines of many doc automatically. Is there anyway to do it? Those doc are just converted using Libreoffice command line.

Thanks for any advice!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-28 02:30:21.443289


Hi @riow, Still looking for an answer here? Please let us know so we can resolve/close this question. Thanks!

qubit gravatar imagequbit ( 2013-03-21 10:25:39 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2013-04-03 01:09:41 +0100

oweng gravatar image

It depends upon what you mean by "line". I presume, from the command line reference, you are using BSD/Linux/MacOS. You can create a script to unzip content.xml, modify it, and put it back in the archive (ODT), but this would only be useful if by "line" you mean paragraph i.e., the first five text:p elements. Otherwise a "line" is some partial structure from one or more of the initial paragraphs in your documents.

edit flag offensive delete link more

Question Tools


Asked: 2012-09-09 02:01:51 +0100

Seen: 116 times

Last updated: Apr 03 '13