The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
7 views

JFileChooser help please java [migrated]

I am trying to use a JFileChooser to get a file and pass it into a class classed TextStatistics. Here is the method. When I click a button this action is performed. public void ...
1
vote
1answer
12 views

error in /usr/share/perl5/iCal/Parser/HTML.pm on debian

how to fix this? when i type perl /usr/share/perl5/iCal/Parser/HTML.pm i get syntax error at /usr/share/perl5/iCal/Parser/HTML.pm line 64, near "$t qw(week month year)" Global symbol "$t" ...
0
votes
1answer
24 views

To convert Powerpoint into outline of Tex-file effectively

I have lectures as powerpoints. I want to convert text and lists to tex-file. If there is a picture, a mark can be left to a file. I can individually add pictures. I tried to save the ppt document ...
3
votes
2answers
83 views

Do emulators parse binary code within files?

I have seen some emulators that claim they execute, and even though they do, their source code shows they don't directly parse every 1 and 0 to determine an instruction. My question is, if the ...
0
votes
1answer
2k views

Batch to extract a word from a string inside a text file

I have a database.txt file with this content: 40001 16 DATAMAN Jimbo WS2 I want to extract the third word, as delimited by whitespace ("DATAMAN" ...
1
vote
1answer
80 views

How do I quickly parse large ASCII files for matching records?

I have lots of files containing data records, stored as space-delimited ASCII files. Each record is a row containing numeric data, with some columns integer and others floating-point eg. 1 1 5711 4 ...
0
votes
0answers
41 views

Can't Parsing Log Linux File Today

I'd like to monitor my linux logs and pull information from the logs to process the files that activities of the workers I do, in my company. #!/bin/bash #if [[ -z "$1" ]]; then # echo ...
1
vote
2answers
42 views

How can I parse out the dimensions for this string in Excel?

I am trying to parse out the individual dimensions (length, height, width) for a string in Excel but am having problems determining which text formulas to use. Details below. Data example (in one ...
0
votes
0answers
26 views

When an image on an editing program is rendered on Windows, is the program parsing it, or is the kernel doing it?

so I know this question is confusing, but luckily I am a computer programmer and can make it more clear if you would help me out by reading on. A simple program, liek MS-Paint, will "know" how to ...
1
vote
4answers
2k views

sed: extracting value of a key-value pair in a URL query string

I am trying to use sed to extract the value part of one of the many key-value pairs in a URL's query string This is what I am trying: echo 'http://www.youtube.com/watch?v=abc&g=xyz' | sed ...
0
votes
1answer
44 views

How to easily pull strings out of a file and store in variables?

I think I'm looking at awk vs PHP vs Perl vs cut. Maybe. I want to look at wp-config.php and look at these lines: define('DB_NAME', 'mydb'); define('DB_USER', 'myuser'); define('DB_PASSWORD', 'xx'); ...
1
vote
0answers
71 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
109 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
734 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
459 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 ...
3
votes
3answers
185 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
148 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
147 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
129 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
1k 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
231 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
1k 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
362 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
365 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
298 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
409 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
2k 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
356 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
120 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
78 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
362 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
548 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
59 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 ...
1
vote
1answer
548 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
3k 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 ...
6
votes
2answers
11k 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
623 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
885 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
1k 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
100 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
339 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
1answer
800 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
2k 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 ...