The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
12 views

How to check a range of zipped files

I am looking for any ideas how to check for particular entry in given range of time in logs. If I am checking logs just from one day, I can do the following: more /var/logs/log.08.12.log | grep ...
0
votes
1answer
21 views

Dig command: Is the output guaranteed to be sorted?

Let's say I'm trying to lookup the IPs mail.yahoo.com, gmail.com and mail.google.com If I execute: dig @8.8.8.8 +nocomments +noquestion \ +noauthority +noadditional +nostats +nocmd \ ...
1
vote
1answer
28 views

How to xml to xml parse

I am trying to automate this process. I have link to this xml file. it has many parameters, but I am only interested in 3 of it's parameters. I want to use those 3 parameter and create new xml file ...
1
vote
3answers
114 views

Extracting links from a numeric range of web pages

I would like to extract links from a numerical sequence of pages like this: http://example.com/page001.html http://example.com/page002.html http://example.com/page003.html ... ...
0
votes
1answer
139 views

Get variable values from config file

I have one config file with some variables eg below but my command only read some variable value, I cant read all values in config file. Seems only read values with numbers. what is better way to read ...
0
votes
2answers
47 views

How to retrieve a name from another file with a Bash script?

I would like to grab a name out of another predefined file and use it within my shell script. The file being read would be in ./docs/description.org and the format (a table in .org format) is: ...
0
votes
0answers
94 views

How can I extract stock price data from a specific webpage?

I would like to extract the stock data (i.e. daily stock price) from the following webpage: http://www.onvista.de/aktien/Alcatel-Lucent-Aktie-FR0000130007 This page shows a chart graph of a stock ...
0
votes
1answer
17 views

Remove symbols while appending in excel

I'm having some parsing issues here. I have a column of Twitter handles, with '@' in front of them, and I'm trying to auto-append them in a URL on the next column. Example: | @Bob | ...
0
votes
1answer
45 views

mIRC parsing a name

Asked originally: http://stackoverflow.com/questions/23419961/mirc-parsing-for-a-name So I've been getting a bothersome someone who keeps using my nickname. What I want to be able to do is perform ...
0
votes
3answers
571 views

Fast extraction of key-value pairs in Linux command-line

I have a large (tens of GBs) text file with data in key=value;foo=bar;baz=quo format. The number and order of keys can change from line to line. I need to process this file and extract values for ...
1
vote
1answer
43 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
114 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
112 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
6k 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
166 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 ...
1
vote
2answers
54 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
27 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 ...
2
votes
5answers
5k 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
59 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
81 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
179 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
2k 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
745 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
365 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
193 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
317 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
188 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. ...
4
votes
1answer
2k 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 ...
3
votes
5answers
5k views

How to split a text file into multiple text files

I have a text file called entry.txt that contains the following: [ entry1 ] 1239 1240 1242 1391 1392 1394 1486 1487 1489 1600 1601 1603 1657 1658 1660 2075 2076 2078 2322 2323 2325 2740 2741 2743 ...
1
vote
0answers
301 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
1answer
1k views

Parsing out specific URLs from local html file

I want to parse out certain URLs from a saved html-file with a simple bash-script/command, so i can download them via wget laters. What i have so far is: awk 'BEGIN{ RS="<a *href *= *\""} NR>2 ...
0
votes
3answers
2k 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
405 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
416 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 ...
2
votes
1answer
645 views

Deleting music file duplicates but retaining iTunes metadata

Back when I first imported the majority of my iTunes library I had the copy files to iTunes Media folder when adding to library option checked, so basically my whole music library was duplicated on ...
0
votes
1answer
382 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 ...
5
votes
2answers
6k views

Powershell: Get inital character string from file name and create directory from string, then move files

I have a folder with the following file names: 00150005D201110172338427995.vpf 00150005D201110180005318058.vpf 00150013D201110180014448082.vpf 00150013D201110180022268098.vpf ...
2
votes
1answer
566 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
425 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
133 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
81 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 ...
2
votes
3answers
2k views

Excel notation that gives FIND the ability to look for multiple strings

So I've been working with a spreadsheet that has a list of schools names. I pull data from this spreadsheet to create a roster that limits the size of text in each cell. In order to get the school ...
1
vote
1answer
495 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
627 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
60 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
2answers
618 views

Batch-convert lit -> txt

Is there a tool for Windows to batch-convert a folder of .lit files to a different format, preferably plain-text?
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 ...
3
votes
2answers
705 views

Match exactly (and only) the pattern I specify in a grep command

Usually, grep searches for all lines containing a match for the pattern/parameter I specify. I would like to match just the pattern (i.e. not the whole line). So, if a file contains the lines: We ...
7
votes
3answers
17k 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': ...