General :: Extracting Information From Multiple Text Documents?

Jul 7, 2010

I am an astronomy student using Ubunut 10.04, and a frequent user of IRAF ( an *nix image processing application geared toward astronomy). IRAF produces, amongst other things, a text document with various values on it (example below).

Code: K IRAF = NOAO/IRAFV2.14.1 version %-23s
#K USER = name %-23s
#K HOST = Balthazar computer %-23s
#K DATE = 2010-04-29 yyyy-mm-dd %-23s

[Code]...

Now, the information I'm actually interested is the X and Y coordinates down towards the bottom (in this case, 973.505, 271.474).

I have about 800 of these output text files, and I was wondering if there's any sort of script or command that could go through them (presumably reading from a list of file names), and extract the coordinates. Ideally, the output would be a list of coordinates (i.e. X-coordinate, Y-coordinate).

View 1 Replies


ADVERTISEMENT

General :: Extracting Text From File (Apache Access Log)

Apr 23, 2011

There are some log files that I wish to get some information from (Apache Access Log) but it is huge! All I need as of right now is any information from date and time A to date and time B. What commands can I use to extract this information from the access_log and put it into another file with just that information? I created a file called "access_info" by doing
Code:
touch access_info
but I was not sure where to go from there.

View 13 Replies View Related

General :: Extracting Columns From Multiple Files With Awk?

Sep 22, 2010

I'd like to extract a single column from 5 different files and put them gether in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is:awk 'NR==FNR{a[NR]=$2; next} {print a[FNR], $2}' file1 file2I added the file3, file4 and file5 at the end, but it doesn't work. Does anyone know what do I have to do?

View 5 Replies View Related

Programming :: Searching Thunderbird Emails & Extracting Information

Jun 8, 2010

I have a load of emails in my Thunderbird trash folder and some of them (all with a similar subject) I want to extract the email address for them and put in a text file. I have located the trash file but it seems that it is just a big flat file with a concatenation of all my emails in it, varying number of header lines etc etc - ie, something which really doesn't seem to suit awk, sed, grep etc.Does anyone know of any way this might be accomplished, or any third party tools which may help?

View 1 Replies View Related

General :: Copy And Paste Text Among Documents In Terminal

Mar 28, 2010

What is the best way to copy and paste some text among text documents in Linux terminal environment? Suppose I have 2 documents, A and B, and I want to copy some part of A to B. What is the way to achieve this?

View 5 Replies View Related

General :: Writing A Script To Parse Information From A Text File?

Apr 29, 2011

Go to a specified directory and open a log file and parse out specific information and dump it into another text file.

View 4 Replies View Related

Programming :: Extracting Block Of Text From Log File?

Nov 22, 2010

I have a log file and want to extract all blocks of text that start with START and ends with END. Each block is 5 lines.

Code:
--- START
blah blah blah

[code]...

View 1 Replies View Related

Software :: Gnu Tar Creates Multiple Odd Directories With Numeric Names When Extracting?

Feb 4, 2010

I become to use tar with incremental feature for archiving data under ubuntu.But when I try to extract archive later under windows (using gnu tar also) it creates many directories like this:

<...>
11324447220
11324447221

[code]...

View 2 Replies View Related

Ubuntu :: Desktop Searching For Text In PDF Documents?

Jan 1, 2010

I have PDF files that I would like to be able to search the text of. I tried the GNOME Search for Files program (Places->Search for Files...) but it didn't find the PDF files that contained the text. What do you use to search for text in PDF files?

View 2 Replies View Related

Fedora Security :: Pointers To Text Documents On Disk?

Jan 22, 2010

how RAR archives work. Suppose I have a .rar archive of text documents (for the sake of argument, containing personal information). I am able to run 'shred *.rar' in that directory from the terminal. What happens here? My assumption is that the contents of the .rar file (pointers to the text documents on the disk?) are 'shredded' (overwritten n times), but the text documents themselves are still on the disk intact.

View 4 Replies View Related

Ubuntu :: Contents Of Text Documents Displayed In Their Icons?

May 1, 2010

but not all, of my text documents show their contents as their icons, instead of using my theme's designated icons for text files. For example, in the above image, the bottom-right file contains: "hello ubuntu forums / this is my problem / how can we fix it? / thank you" and it's icon displays some of this message so that it may be read without opening the file As you can see, the problem occurs with some filetypes, like .txt and .html, but not with others, like .doc or .rtf. How can I force all text files to use my theme's designated icons?

View 2 Replies View Related

Ubuntu :: Search All Documents Ending In .log For String Of Text?

Oct 27, 2010

I'm trying to search all .log files in ~/.irssi/irclogs/ and it's sub directories for the string 'irssi' and I had though the command I'd used for something similar before was.How should I edit the command, and is it possible to output every line found containing the string to file?

View 4 Replies View Related

Ubuntu :: Ability To Scan Multiple Documents Each Day?

Oct 14, 2010

My needs require the ability to scan multiple documents each day. Ever since 10.04 my HP J4580 All-in-One scanner operation has progressively become worse. With 10.10 it completely quit working. As is so often the case, the HP J4580 All-in-One works flawlessly in Windows so I know it is strictly a Ubuntu related problem. Do a search of my threads and you will see that I have receive very little help with this issue. that is another problem I have been having.I have reverted back to 9.10 and all my scanning issues are resolved. I have followed several threads offering solutions with no success. I know the issue is with the removal of xsane from Ubuntu. Versions after xsane 0.996 is when the problem surfaced.On my system (desktop) I have been greatly disappointed with the last 2 releases. Firefox has even started having random crashes in 10.10. I tire of spending so much time trying to correct these issues.I will not quit using Ubuntu but I will not be using the latest two releases for a while. 9.10 worked great and I will keep it until support ends. You get what you pay for so I will not blast Canonical or the software developers. I would hope that prior working hardware would not lose functionality with the release of a new OS version.

View 4 Replies View Related

Programming :: LaTeX, Multiple Documents From One File?

Aug 17, 2010

I want to create multiple documents from within one file. Example:

Code:
documentclass{report}
preamble

[code]....

View 5 Replies View Related

General :: How To Combine Multiple Text Files

Mar 22, 2011

Combine multiple text files into one text file?

View 5 Replies View Related

Ubuntu :: Open Documents In Openoffice 3.2.1 In Tabs Instead Of Multiple Windows

Jan 19, 2011

i have a macbook pro with snow leopard 1.6.6 (its Unix based don't look me like that ). my question is about an linux software so thats why i'm asking here (on mac forums nobody answered me) I wanna know that how i can open documents in openoffice 3.2.1 in tabs instead of multiple windows ... (like firefox ?

View 6 Replies View Related

Ubuntu :: Multiple Search And Replace In Documents - Creating A Sed Script?

Jul 16, 2011

I want to do search and replace in multiple files. I've seen that it possible to create a sed script but I haven't got the talent to do it myselfWhatd is to locate all instances of a word - lets say 'day' - and replace it with for example 'night' in all odm-documents in a specific folder. It would be great if the search only matched whole words and was case sensitive.

View 1 Replies View Related

General :: Grep Multiple Lines From A Text File

Jun 17, 2009

I have a list of words that I want to grep in many files to see which ones have it and which ones dont. in the text file I have all the words listed line by line, ex: list.txt:

check
try this
word1
word2
open space
list ..

I want to grep each line one by one. like I want it to

grep "check" *.log
grep "try this" *.log
grep "word1" *.log .. etc how can I do this?

and maybe write the output to a file.

View 5 Replies View Related

General :: Search For Text Strings In Multiple PHP Files?

Feb 3, 2011

Long story short, I got a folder with nearly 800,000 php files. I would like to search each file for a string and if it exists in that file, the file gets copied to another directory. Is this possible from the terminal? So far I got: grep -i -n -r 'ppr-1792' * | cp $1 move_to_here

But this obviously doesn't work. $1 needs to be the file name that contains matching text.

View 2 Replies View Related

General :: Write A Shell Script Which Will Simultaneously Collect OS User Information And Write In An Individual Text Files?

Feb 17, 2010

I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.

View 8 Replies View Related

Fedora :: Text-to-speech In Okular \ Only Make HTML-only Documents And Not Image Attachments?

Sep 23, 2010

I am using Okular as a chm reader (I know how to use extract_chmlib and htmldoc.. but with those two I can only make HTML-only documents and not image attachments..)and it just happens so I would like my machine to read the text... i have both festival and espeak installed (as well some gnome-based plug-ins)... But I just can't get Okular to speak.

View 2 Replies View Related

Programming :: Editing Text Files With Information From PostgreSQL DB?

May 16, 2011

Is there any way to edit text files with information in a database? The file is supposed to be always the same.. the information is going to be addedd in a specific format

View 2 Replies View Related

Debian :: Cups-pdf Creates PDFs With Garbled Text Information

Mar 14, 2012

I print something with cups-pdf. The pdf appears, it LOOKS as it should, BUT if i actually select text from the pdf viewer and try to paste it somewhere, i get messed up characters (sometimes no characters). So this means that searching too is out of the question i guess.

Why is this happening? I dont know if its a ghostscript issue because on Windows there are several gs based pdf printers and those create perfectly searchable pdfs. Is this a cups/cups-pdf specific issue?

PS Printing through the "Print to file" dialog creates good pdfs but i dont know how to replicate that via command line.

View 3 Replies View Related

OpenSUSE Install :: Change Mountpoint Of Partition / Media / Documents To / Documents

Dec 25, 2009

How can I change the mountpoint of my partition /media/documents to /documents.This is a partition of sdb and a fixed disk.The reason is that /media/ sometimes creates ghostdirectories while /Windows/C never does so, programmes writing/reading from this partition therfore don't work if a ghostdir_ exists.(BTW Suse is on sdb5 and sdb6. on sda is windows and used to be Ubuntu, the Suse-swap is sda5. Windows is out of use.)

View 4 Replies View Related

Ubuntu :: Mapping Windows My Documents Folder To My Documents Folders

Dec 18, 2010

I can access my windows my documentsmusic by mounting my windows drive and browsing to it. I can then playwatch my movies and pics in Ubuntu.But what I really want to be able to do is re-map the Ubunbu docs folder like so:

Ubuntu Pics = Windows My Documents pics.
Ubuntu Videos = Windows My Documents Videos.

I'm not very unix savy so I've been using Ubuntu tweak PersonalDefault Folder Locations setting and browsing to my Windows folders. But it doesn't work.I have managed to make a desktop 'short cut' and that works but I'd rather set the system wide default document folders.

View 5 Replies View Related

Software :: Documents Saved As MS Word Documents?

Jan 13, 2009

When he saved doucuments in the opens source word processor as a MS Word document, he can't open it. Didn't had this problem until today.

View 2 Replies View Related

General :: Make NIS User Information Override Local User Information On Client Systems?

Jul 30, 2011

How would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?

View 1 Replies View Related

Software :: Multiple Selections In A Text Editor?

Apr 5, 2010

how would i highlight multiple selections in a graphical text editor such as gedit, kwrite, kate, leafpad, etc. is it possible? for example; if i wanted to redact a document by removing several different words throughout the document.

i could probably learn vim or nano and regular expressions without too much trouble if those would work better.

View 2 Replies View Related

Fedora :: Text Editor With Multiple Overlapping Windows?

Dec 19, 2009

tell me which text editor supports multiple overlapping windows (eg like turbo C++ 1.01 IDE ? ). Currently I'm using gedit and find that I cannot see two or more files at the same time

View 8 Replies View Related

Fedora :: Text Editor With Multiple Views In Tabs?

Apr 27, 2011

I want to edit a text file and have it open twice so I can edit different sections without scrolling back and forth. I can do this in Kwrite and Kate but have to have two windows open. Is there a way to do this but with tabs?

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved