The parsing tag has no wiki summary.
-1
votes
0answers
16 views
Howe to express while loops in compiler parser construction [closed]
I am kinda new to design and constructing compilers. The thing I would like to implement is adding the while loop expressions to my so-far existed c/c++ code based on lets say these general BNF ...
1
vote
0answers
22 views
Can a keyword be in a PDF Annots array?
The JHOVE parser for PDF, which I maintain, will sometimes find a non-dictionary object in a PDF's Annots array. According to section 8.4.1 of the PDF spec, the Annots array holds "an array of ...
0
votes
1answer
44 views
Counting duplicates lines from a stream
I'm currently parsing apache logs with that command:
tail -f /opt/apache/logs/access/gvh-access_log.1365638400 |
grep specific.stuff. | awk '{print $12}' | cut -d/ -f3 > ~/logs
The output is a ...
1
vote
3answers
77 views
How to parse a webpage into a text or excel file?
I'm trying to figure out a way to grab 4 - 5 lines of text from multiple pages of the same site, the information is always in the same place in the webpage. How would I go about getting that ...
1
vote
2answers
63 views
Difference between an executable and data file format?
A few quick things out of the way as I know these type of questions often have a malicious background.
I am not trying to execute something in a file format (jpg)
I am not trying to simply achieve ...
2
votes
3answers
69 views
Breaking a file down of strings, into separate files each based on the first letter. BASH
Alright, so I have a file full of thousands of strings. Each one on it's own line. I want to make a script that will allow me to take this file, call it list.txt, and take the items from each line, ...
2
votes
4answers
89 views
Parsing command line output delimited by underscore
I've got some command which output looks like that:
some_command
Current view: username_token1_token2_token3_4_token4_2
How could I parse the "token3_4_token4_2" part out of the string?
2
votes
1answer
86 views
What does this grep command actually do?
I'm trying to get a hang of grep. I've got the following command from a GeekLet script that someone made for getting the weather info off some website:
curl -s ...
1
vote
2answers
76 views
Parsing two input files and comparing line existence
I need to take two text files and check to see if a line that exists in File A doesn't exist anywhere in File B.
Each line in File A that does not exist in File B should be copied to an output log.
...
3
votes
1answer
610 views
How do I parse file paths separated by a space in a string?
Background: I am working in Automator on a wrapper to a command line utility. I need a way to separate an arbitrary number of file paths delimited by a single space from a single string, so that I may ...
1
vote
0answers
131 views
How to export DokuWiki without machine login
I need a plugin to export the whole DokuWiki, PDF preffered.
I tried bookcreator, dw2pdf and an epub plugin which all do not fit my requirements.
It would be nice if internal links are replaced with ...
0
votes
3answers
602 views
What tool can produce the line count of a text?
I don't want it to delete the rest or anything but just to quickly report the number of lines the text I just entered is included.
Is there a tool that quickly finds "the number of lines in this text ...
0
votes
1answer
260 views
Is there a way of parsing a PHP script but not executing/running it?
I know that you can run php -l filename.php to run a syntax check on a file, but is there a way of parsing the file without actually executing it (ie without running any of the in-built PHP functions) ...
1
vote
0answers
253 views
Parse incoming mail in Thunderbird?
I need to parse the title of incoming mails and do some simple checks like "does it include this word/number".
I'm familiar with AutoHotkey, batch, PHP...
Any ideas? I can't seem to find a plugin ...
0
votes
1answer
202 views
How can I parse data from inside a tag with Applescript?
How can I parse data from inside a tag with Applescript? I know Applescript has the words 3 thru -2 of myTextVariable syntax - but how would I use it to be sure I am just getting This is my text from ...
1
vote
1answer
234 views
Copy files from m3u to destination
I have a playlist, m3u extended, formated like:
#EXTM3U
#EXTINF:213,2 Tåst - (foo bar)
/home/www/Music/Test/test 123 - test.mp3
My problem is, that it seems the line-break is encoded as '\n\r' ...
2
votes
1answer
1k views
How can I parse an XML file from the command line (for GeekTool)?
I'd like to find a Terminal command that can pull the file at http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=SOMEUSERNAME&count=1 and parse it to find a user's Twitter status. ...
1
vote
1answer
218 views
Trying to use XML::Parser and XML::XPath, where do I type the command?
Here's the tutorial I am using, which I have been assured is of high quality by Google: http://www.kitebird.com/articles/mysql-xml.html#TOC_5
Now, what I am trying to do is run some test scripts ...
0
votes
2answers
97 views
lines identical except for their first word, put the first word in a variable
I have file(sudoers) in which lines can be identical except for the first word in them (different users can execute the same set of commands). I am able to extract such a line using the command:
# ...
0
votes
1answer
73 views
“Machine-readable” list of states in native name
I'm searching for a list (xml,json,... preferred) which contains all sovereign states (lets define them as the members of the UN only) in their native name(s).
ISO-Code for state and language are ...
1
vote
1answer
231 views
How can I open a subset of a large (35MB) .xlsx file?
I have Ubuntu 10.04 running on a Dell Optiplex with 4GB of memory and two 3.16GHz processors.
I received a 35MB spreadsheet. It opened in Gnumeric after 5 minutes with errors, and it hasn't opened ...
1
vote
1answer
357 views
Extract data from PDF document to CSV
I would like to convert a stack of financial documents, identically formated, into a CSV file.
Here is an example:
I have a program to do the OCR (optical character recognition) so that is not the ...
0
votes
1answer
50 views
Last email exchanged in Outlook
I use outlook for all communications with my friends; I want to find out when I last exchanged email from a friend. Normally the emails that I get from my friends are moved to folders in outlook.
Is ...
0
votes
1answer
454 views
Batch convert lit -> txt [convert from one text format to another in a batch]
Is there a tool to BATCH! convert a folder of lit files to a different, plain-text would be the best choice, format?
4
votes
3answers
2k views
How to use grep to match domain names?
I have a list of urls like:
hxxp://url.com/subpage.html
hxxp://www.url2.com/index.php
hxxp://subdomain.url3.com/somepage.php
...
How can I use grep to match the domain names only?
All the urls ...
5
votes
2answers
6k views
Import json data into Excel
I have a text file in json format and want to read it into Excel. A very simplified example of the json file has the following structure:
{ [
{ 'a': 10, 'b': 20 },
{ 'a': 20, 'b': 22 },
{ 'a': ...
1
vote
0answers
536 views
Retrieving a registry variable in a batch script
I wish to write a batch script (windows XP) that extracts certain installation paths from the registry.
How would one go about writing such a script?
I have written the following - I am (as you ...
1
vote
3answers
686 views
How Do I Parse a String?
I am new to bash, and I am creating a script that loops through the files in a directory and based on part of the filename, does something with the file, so far I have this:
#!/bin/bash
...
4
votes
1answer
978 views
Shell scripting: Way to parse parameters from command line
myscript [-a a-arg] [-c c-arg] [-b] [-e] somedirectory
Given that I want my shell script be invoked at the command line using the above parameters - where [these brackets] denote that they are ...
0
votes
1answer
91 views
automatic manipulation of email messages
Does it exist any web service that "filters" any email message allowing to change the subject or the content on a regexp basis and then forward it to my webmail address?
For example: I want to append ...
1
vote
2answers
315 views
Capturing and parsing xterm cut buffer in emacs
I'd like to make an indirect control for Emacs (in Ubuntu Linux) so that I can swipe some text in an xterm with the cursor, cutting it into the X cut buffer, then run a macro in Emacs to parse the ...
0
votes
2answers
667 views
I installed and ran Heritrix Web Crawler. It stored data in .arc.gz files
If you have used Heritrix Web Crawler, I'd really appreciate your help.
3 questions:
An arc file probably contains source codes of MANY pages in there. How do I figure out which is which?
How do I ...
7
votes
7answers
1k views
Automatic parsing of citation text in academic references
Is there any software (or pseudo-code) which can automatically scan a piece of text (either pasted into the tool, or read from a .doc/.pdf) and identify citation data using standard formats? The data ...
