First time here? Check out the FAQ!
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!
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.
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!
Asked: 2012-09-09 02:01:51 +0200
Seen: 56 times
Last updated: Apr 03
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
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