Ubuntu :: Using Cut And Grep To Extract Information?

Aug 2, 2011

How would I use cut or grep to take this line :

Code:

Load......................... 198 Watt(22 %)

and make it into this information, in a text file :

Code:

198 Watts

If you don't mind, please explain the process, as I have been trying to figure this command out, and I must be missing something.

View 9 Replies


ADVERTISEMENT

General :: Grep - How To Extract Mask Value

Feb 24, 2011

I want to extract some information from ifconfig,
E.g.:
inet addr:123.123.123.123 Bcast:123.123.123.255 Mask:255.255.254.0
I want to extract the mask value, how can I do that? I've tried using
Code:
grep -o "Mask:*" test1.txt
but it only outputs "Mask:" I need to get 255.255.254.0

View 3 Replies View Related

Ubuntu :: Download A Webpage To Extract Information?

Jun 30, 2011

I want to download a webpage to extract information. This used to work with other pages, but with this particular page [URL].., I get the following error.

Code:
bjvca@ifpri-laptop:~$ wget http://www.farmgainafrica.org/index.php?option=com_content&view=article&id=5&Itemid=27
[1] 10375
[2] 10376
[3] 10377

[Code]...

View 3 Replies View Related

Programming :: Perl Extract Information For A Particular Column?

Oct 24, 2010

I have a file which has the output as shown below:

Code:

Teams | matches |Goals | YC | RC
------------------------------------------------------------------------------
Liverpool: | | | |
Gerrard | 97 | 100 | 41665 | 1342

[code]....

I need to extract the Info from the RC column for the first 4 players of liverpool. The test code i have does the same,but can anyone show me a better way of doing it.I could do it easily with gawk -F"|" and print the respective column,but i need to do this in perl.

Code:

#!/usr/bin/perl
use strict;
use warnings;

[code]....

View 7 Replies View Related

General :: Write A Script To Extract Information From Db Tables?

May 25, 2010

I want to write a script that will extract information from a db table and store that information to a csv file. Basically, I have imported data into a table, I want to save this data to a csv file for later processing. How do I connect to the db and extraxt information from the table?

View 3 Replies View Related

Programming :: Extract Dwarf Information Debug A Section?

May 10, 2011

I would like to extract debug information but I have some problems. For example, I have a executable a.out...

Quote:

nm -f sysv a.out | grep ".global_var" >vars.txt

With this command I extract all my variables. All of them are in .global_var section, and it give me follow information:

Quote:

CAN_station_n |08073258| D | OBJECT|00000001| |.global_var
CONTROLend |080732a7| D | OBJECT|00000001| |.global_var

[code]....

Well, I have only address of my vars, but I would like to know type var or struct of the variables. With dwarf dump I have all of information, but it is a mess...

Quote:

<1><117bc>: Abbrev Number: 32 (DW_TAG_variable)
<117bd> DW_AT_name : (indirect string, offset: 0x153d): draw_limits
<117c1> DW_AT_decl_file : 128
<117c2> DW_AT_decl_line : 207

[code]...

Is there any parser or way to put in order this information?? create a file with the follow information:

name of var - address - type - size - struct or not

View 5 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

Fedora :: Write A Program Which Would Get Information From A Webpage And Display The Information On Desktop Sort Of Like A Widget?

Sep 3, 2009

I'm trying to write a program which would get information from a webpage and display the information on my desktop sort of like a widget. I kind of remember there being something like this already made, but for the life of me I can't remember what it's calledDoes anyone know?

View 1 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

Ubuntu :: Extract .iso To USB?

Feb 21, 2011

so the Universal USB Installer is just not working for me, and on this netbook I do not have Ubuntu on it and it does not support CDs. I need a way to extract the .iso to the USB flash drive

View 1 Replies View Related

Ubuntu :: Grep Or Sed And Put Into CSV?

Aug 12, 2011

I'd to extract data from a log file and move those strings into a CSV.

Log File:

Code:
...
File = foo.bat
Date = 11/11/11
User = Foo Man

[Code]....

View 3 Replies View Related

Ubuntu :: Extract Does Not Appear In Menu?

Apr 28, 2010

my problem is the following not aparese the option to extract or compress.

to extract it I have to open the file manager and extract and not is grace.

Ubuntu 10.04 (lucid)

View 9 Replies View Related

Ubuntu :: Downloading DJL - Where To Extract For SH

May 2, 2010

I've been trying to download DJL for a while now and I keep getting error messages. I've been looking at instructions on how to do it and I do what they say. I download it and then I extract it. I think I'm getting confused on where I need to extract it to. I'm very new to this and I'm trying to learn. I've been extracting it to my desktop... then I enter into the terminal sh djl.sh and it gives me sh: Can't open djl.sh. I have the newest version of Ubuntu.

View 2 Replies View Related

Ubuntu :: How To Extract .run File

Jul 21, 2010

This is what I tried to do:>cd ~/Desktop >sudo sh ati-driver-installer-10-1-x86.x86_64.run --extract.After entering my password, this appeared: >sh: Can't open ati-driver-installer-10-1-x86.x86_64.run.What am I doing wrong? It apparently worked in this thread.

View 7 Replies View Related

Ubuntu :: Unable To Extract Tar.gz

Oct 11, 2010

I'm trying really hard to extract this "eclipse-java-helios-SR1-linux-gtk.tar.gz" file.

Its showing these errors:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I'm unable get through the above mentioned errors..

View 6 Replies View Related

Ubuntu :: Extract The Audio From The PDF ?

Jan 20, 2011

For about three months I've been going up and down the internet looking for a solution to this problem... Basically I take this distance learning course. Every lesson is sent to me via email in PDF format and it includes many audio examples which are embedded in the file. The problem is none of the Ubuntu readers seem to recognize it, and the Adobe reader says I need a plug-in which does not exist for my system. I quote: "We're sorry, but the third-party media player required to play the selected media file in your Adobe PDF document isn't available for your system". I've been taking this course for two years and I still have two more to go. I contacted the company that sells this course and they were as puzzled as I am... Is there a way to extract the audio from the PDF? Or alternatively open it with another application? I would hate to have to go back to windows for this one issue...

View 3 Replies View Related

Ubuntu :: How Do I Extract Pgp File

Apr 14, 2011

how do I extract a pgp file on Ubuntu? I have the file and a passphrase. On Windows I have Kleoptra so I can right click the file and click 'decrypt'. Is there an easy way to do this on Ubuntu?

View 3 Replies View Related

General :: Extract .ISO On Ubuntu

Aug 23, 2010

I have linux ubuntu 10.04... and i download a .ISO of windows 7. because i want install windows 7 because i need some programs of windows for my work.. so i need make a dual boot. but the problem it's not net....

So i have a .ISO ( of windows ) and i have a notebook. ( no Drive cd. only USB PEN's ) where i can Extrat the .iso file ( windows system ) to my pen ? i cant extrait i try but nothing works.

View 13 Replies View Related

Ubuntu :: Cannot Extract Rars File

Jan 24, 2010

I just installed Ubuntu for the second time, first time was like 2 years ago and my pc was an oddball and some stuff was just not supported properly. Anyways.. I've got the latest build of Ubuntu installed, everything is working fine, just one problem.

I have many, many, many files that are archived in multiple .rar's. Like .r01, .r02, etc... I have them all copied over to the harddrive, but cannot extract what is in them. Also, I have some of these .rar's archived in a single .rar because of windows being stupid and not letting me copy them to my external drive as the names of them were too long for windows to handle. Those .rar's will extract a couple of the .r01, etc.. files, but not all of them.

View 8 Replies View Related

Ubuntu :: Can't Extract A File No Matter?

May 19, 2010

I can't seem to extract it with any archiver, and when I used unrar from the console, I get this:shai@shai-desktop:~/Desktop$ unrar c1700-adventerprisek9-mz.124-15.T8.rarunrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen DekkersExtracting from /home/shai/Desktop/c1700-adventerprisek9-mz.124-15.T8.rarExtracting c1700-adventerprisek9-mz.124-15.T8.image Failed 1 FailedYou can see that it can open the archive but it can't get the file inside.

View 2 Replies View Related

Ubuntu :: Extract Only The Strings After The Comma?

Jun 1, 2010

I have a csv file in this format:

Code:
1,characterswithnospace
2,same
4545,characters
I want to extract only the strings after the comma,

View 4 Replies View Related

Ubuntu :: .rar File Doesn't Extract

Jun 9, 2010

I have installed unrar-free, and I am trying to extract a file from a .rar archive (actually the file is split into several archives).

When I choose one of the .rar files and open it with Archive Manager, there are no errors and the file to be extracted shows in the Archive Manager window. I then choose to extract it, and after that I click on "show files". But when the folder supposedly containing the extracted file opens, the file isn't there.

Maybe relevant info:
I am running latest stable version of Ubuntu, as the user that was created during the Ubuntu installation. The files are in my "Downloads" folder, and the Archive Manager window says that the .rar file is read-only.

View 3 Replies View Related

Ubuntu :: Extract A File Onto The Partition?

Jun 10, 2010

I formatted a partition on a USB stick in ext2 format for Linux with GParted. I tried to extract a file onto the partition and received a error that said I did not have the permissions to do it.

View 4 Replies View Related

Ubuntu :: Extract ISO With Low Disk Space?

Jun 25, 2010

I've got a slicehost VPS with 10GB disk space, and I'm trying to extract a 6.4gb ISO file. Between the ISO and the OS i've got just 761MB to play with. Is there anyway to extract files from within the ISO without needing another 6.4gb?

I've tried mounting the ISO as read/write so I could move files instead of copy, but did not have any luck. See here and here.

Should I just give up, download the iso, then re-upload the files? 6.4gb represents a long time over dsl.

View 9 Replies View Related

Ubuntu :: Extract The Files And Contents Out Of A .pkg?

Jul 31, 2010

Does anyone know how to extract the files and contents out of a .pkg, A sony package file to be precise.

View 9 Replies View Related

Ubuntu :: How To Extract Multiple Rar Files At Once

Sep 11, 2010

find a software similiar to [URL]whit gui for ubuntu ? or some kind of nautilus script ?

View 9 Replies View Related

Ubuntu :: Unable To Extract The Files ?

Oct 8, 2010

Archive: /home/kishore/Desktop/wrar391.exe [/home/kishore/Desktop/wrar391.exe] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. zipinfo: cannot find zipfile directory in one of /home/kishore/Desktop/wrar391.exe or /home/kishore/Desktop/wrar391.exe.zip, and cannot find /home/kishore/Desktop/wrar391.exe.ZIP, period.

i am not able to extract the files in ubuntu can you tell me when i click archieve manager i am getting this error and which software i have to download for the zip files to be extract in ubuntu

View 6 Replies View Related

Ubuntu :: Extract The Music From The .mid To Play?

Dec 24, 2010

I am looking for a .mid reader so that I can extract the music from the .mid to play, is there such a program?

View 1 Replies View Related

Ubuntu :: Large .tar.gz File That Trying To Extract?

Jan 4, 2011

I've got a large .tar.gz file that I am trying to extract, I have had a look around at the problem and seems other people have had it, but I've tried their solutions and they haven't worked.The command I am using is:

Code:
tar zxvf file.tar.gz
and the error is:

[code]...

View 9 Replies View Related

Ubuntu :: Extract Metadata From Transmission?

Feb 28, 2011

I was able to do this once but ive forgotten how to.

Basically i want to copy and paste the metadata from tranmission onto a usb key-im about to reformat my installation and want to back up my metadata so i dont have to manually add all my unfinished torrents.

View 1 Replies View Related







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