Tag Info

New answers tagged

-1

gPDFText converts ebook PDF content into ASCII text, reformatted for long line paragraphs, It works for me and it has a graphical interface.


1

Try this: grep "<TD>" yourfile.xml | awk -F "TD" '{gsub(">|</","",$0); print $2;}' the output will be: 51.9029244701 47.0082067303 grep select xml TD tag, awk use TD as separator and remove > and </ from $2 field. In order to select all node, try xslt transformation: <xsl:stylesheet version="1.0" ...


1

I wrote up a very simple Python script that will read in an xml file, and output its contents into another file: import sys inFile = open(sys.argv[1], 'r') outFile = open(sys.argv[2], 'w') read = True for i in inFile.read(): if i == '<': read = not read if read: outFile.write(i) if i == '>': read = not read ...


1

Below mentioned solution might help: cat file_name.txt | fmt -w 80 > reduced_file_name.txt fmt - simple optimal text formatter.


3

Use fmt instead: fmt --width=80 file From man fmt: -w, --width=WIDTH maximum line width (default of 75 columns)


3

I would recommend less You can browse in any direction With less -S logfile -S or --chop-long-lines Causes lines longer than the screen width to be chopped rather than folded. That is, the portion of a long line that does not fit in the screen width is not shown. The default is to fold long lines; that is, display the remainder ...



Top 50 recent answers are included