Ask Your Question
1

how to remove first 5 lines of doc automatically

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

riow gravatar image riow
13 2

updated 2013-03-02 06:20:51 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

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!

delete close flag offensive retag edit

Comments

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

qubit ( 2013-03-21 10:25:39 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

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

oweng gravatar image oweng flag of Australia
1774 16 25

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.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 56 times

Last updated: Apr 03