General :: How To Do Grap Data Between Two File

May 6, 2010

The first file is a "key" of second file. In the second file, the first word is the key of each line. Each key and sentence in second file ONLY have one line. The Second File have many lines with key, but not all the key is shown on file1, but file1's key MUST in the second file. How can I get the result like this: (Need to sort by the key from File1)

View 4 Replies


ADVERTISEMENT

General :: Make Arithmetic Operation Of Data File With Script File?

Aug 31, 2010

I wonder how to arithmetic operation of our data file using any script program/command (like sed, cut,awk)for example my data.file is:

45 65 42
12 23 61
43 34 21

I want to multiply first column with 2 and add second column with 3 then it become

90 68 42
24 26 61
86 37 21

View 5 Replies View Related

General :: Data From Input File To Be Taken And Send To Output File?

Jul 24, 2010

I am new to shell scripting.What i am trying is to write a shell script which take the input file and output should like as mentioned below.Output file should have data till SOK (marked in red)from every second line and then the selected data(marked in green) from 4th line.So selected data from 2nd and 4th line in one line of O/P file and then similarly selected data from 6th and 8th line in second line of O/P file.Input File:

3c3
< c1111;11.11.11.11;pOK;SOK:abcde;Universe:aa
---

[code]...

View 14 Replies View Related

Ubuntu Servers :: Access The Data In .fbd Data File

Feb 19, 2011

We purchased a new database system at work last October, ditching the old system because of a lack of support from the vendor. This is a retail Point of Sale and Backoffice database system. I am not sure what system the new one runs on, but the system we replaced was a Firebird data base. The reason I am posting is because we are now in need of the information contained in the old database which was not completely imported into the new system.

Basically the problem is this: The database in on a Windows XP system and I found a copy of SQL Manager Lite 2008 on the system, which after quite a bit of studying, I figured out how to extract the database into a removable file. I have this file (178MB) on a USB stick in a file called Backoffice.fbd.

My studying suggests to me that I can get into this database with MySQL. I have never used this and have no clue how to do this. All I want to be able to do get into the database and create tab deliminated spreadsheet files for each of the database sections (Customers, Repairs, Sales History, stock files, etc.) Is it possible to do this with Ubuntu and MySQL and if so, can expert suggest one or two things to get me started. While a guided tutorial would be nice because I am not an expert, I am willing to learn on my own if someone could point me in the right direction.

View 3 Replies View Related

General :: Using SED Or AWK To Cut Data From A File Between Certain Characters

Oct 23, 2010

I would like to create a .ksh script which cuts certain data from a document. I have tried to use SED and AWK and piping but its been some time since i have operated on Linux and my memory is patchy.

View 14 Replies View Related

General :: Delete The File And Its Actual Associated Data?

May 12, 2011

I'm confused about "hard link" feature. I've been learning from my UNIX Academy DVDs training that hard links to a file can be many and each of them is an effective filename for the associated data. So let assume that we have some very sensitive data in a file and we want it to be deleted and file has 20 links. I "delete" a file, but in fact I deleted only one "name" of it. My understanding from the training that data is still there until we delete the last associated hard link. But how can I find the names of all of them? If we have the names, they can be removed one by one. Or may be there's command that can trace all the "names" and remove them at once?

View 14 Replies View Related

General :: Make .sh File Receive Data From Php?

Apr 17, 2011

in my php page they ask the user to enter some input example like year. i want that input to be transfer into my .sh file and will show its output. how to make .sh file receive data from php and php sent data to .sh file

View 1 Replies View Related

General :: Migration Of Data File In Unix

Aug 10, 2011

We planned to migrate data files in Unix to Linux. The file in Unix is in big endian data format where is linux is configured as little endian byre structure. This is causing problem in data computation.

How data can be ported to linux ( converting big endian to little endian).

How linux configured can be configured for big endian byte structure.

View 3 Replies View Related

General :: Finding Data From A Text File?

Mar 22, 2010

I'm trying to write a shell script which finds bits of data from a text file. at the moment i'm using grep and basically i need a function which will look through the text file and take the data out of it. the file has days, months, years etc and i want it so i can type feb 06 and it finds all of the data for feb 06.

the problem i have is i can type feb and all the information comes back for feb, but i can't get it more precise e.g. feb 2009 and it finds just feb 2009, it seems to ignore that latter half. I've tried experimenting with egrep and having two inputs but i can't seem to fuse them together, it only takes the first input.

View 8 Replies View Related

General :: Script For Pulling Data Out Of A Txt File?

Aug 3, 2010

I would like to write a script that pulls the last line of data out of a txt file and then saves it to another txt file. The txt file that I am looking at resides here. [URL]

I know I can grab that file using wget. I've done a little scripting but nothing major.

View 7 Replies View Related

General :: Retrieving Data From Corrupt File System?

Oct 26, 2009

basically the situation I'm in is someone mistakenly expanded an NAS without unmounting the drive on the server. This corrupted the superblock and its apparent that all the backups are no good. The drive in question was expanded from about 800gigs to 1.8TBs, its done via an NAS.

At this point I'm most concerned about getting the files off the drive, I can deal with resetting the file system but I really need those files. This happened within a week of me joining this group so I'm kind of doing damage control here, backups were not taken of this particular drive.

View 1 Replies View Related

General :: Cannot Read The Chip Data On The Buffer File

Sep 1, 2010

Im having xeltek eeprom programer but I cannot read the chip data on the buffer file, when I read the chip using programer the datas are being sent to the buffer I can just see the adress line ,hex line and ascii line then I dont know which is the exactly data ,

View 1 Replies View Related

General :: Catalina.Out File Has Binary Data After Rotate

Feb 14, 2011

I manually rotated my catalina.out file, and now the file jumps to 30+Mb and when I try to view it, less tells me it might be a binary file. It sure appears to have binary data in it, about 30meg of it.

I did the rotate via a copy:
copy catalina.out to another file
cat /dev/null > catalina.out

I have tried using echo:
echo "" > catalina.out
...also with the same result.

This application isn't something I can just bounce when necessary. It kind of appears that the original file is still there - sort of. But is it not readable text anymore.

SunOS 5.10
tomcat 5.5.26 (version required by app vendor)

View 2 Replies View Related

General :: Recover Data From Ext3 File System?

Jun 20, 2009

I have accidentally removed vmware virtual disk, my host operating system is RHEL5.2 with ext3 file system, i have used photorec, magicresue and foremost but still no luck to recover the vmdk file. i have seen in foremost configuration file that there are some predefined files (ex- doc, pdf, jpg, avi, zip, etc),

1. is there any way to add vmdk file extension on that configuration file?

2. if yes how can i do ?

3. by adding vmdk on configuration file, can i specifically use recover option for vmdk?

View 2 Replies View Related

General :: Shell Script For Appending Data To A File?

Feb 8, 2011

this is how we append a file at command line its like

cat>>file.txt
adasds
^D

but how to write the code for appending a file in a shell script i tried but its not running

cho "the contents of the file before appending"
cat ab.txt
echo `cat >> ab.txt

[code]....

View 3 Replies View Related

General :: File Really Is After The Command 'file' Output "data"?

May 3, 2010

I download some movies those are with 'mkv' , but couldn't be played, I tried other players , like mplayer , dragon , xine, even swich OS to windows , didn't work . not all of those files , but some of them. one of them named 'the.other.man', 2GB.I opened a terminal and executed "file the.other.man.mkv "utput is "data", and command 'strings the.other.man.mkv", output like as follow:

T5}.
S!e
I|

[code]...

View 1 Replies View Related

General :: Awk: Read Dan Manipulate Data In Multi Files From A File?

May 26, 2011

I wonder capability of awk to manipulate data in consecutive multi files by read one batch file.for example I have files: data1.dat, data2.dat,data3.dat and listfile.txt

cat data1.dat
23 34 54
43 45 76

[code]...

View 4 Replies View Related

General :: Read Data From Text File And Output Into A Table?

Apr 12, 2010

I'm having a slight dilemma on reading data from a text file and outputting it into a table then displaying it. Basically I'm writing a shell script that takes information from text files then outputs the data into a table with 4 headings.he extracting of the data is fine, but creating a table i'm having problems with. I think it is possible to do it using the awk function, but so far i'm having a lot of difficulties.

View 14 Replies View Related

General :: Scan Through A File And Enter The Data In Multiple Files?

Sep 1, 2010

I have a file which contains the data i retrieved through prstat and an array that contains all the unique process ID's of that particular file. i want to compare each and every line in the file with each and every element of the array so that i can create multiple files for the multiple value in the array.

View 6 Replies View Related

General :: Command Line To Prepend 8 Bytes Of Data To A Binary File?

Jan 14, 2011

i would like to add 8 bytes of data to the begigning of a binary file.is there a command for this?

View 2 Replies View Related

General :: Unable To Create Graphs With Rrdtool / Why No Data Coming Into File?

Sep 6, 2009

I was trying to do some graphing of the Disk Usage of the my root partition.

I tried it with rrdtool,but I am not able to create any graph.

I followed the below steps

1. Creating a rrd database file

rrdtool create diskusage.rrd --start N DS:Usage:ABSOLUTE:600:1:100 RRA:AVERAGE:0.5:1:432

I then updated the rrd file with below cron entry code...

Why no data is coming into the rrd file ?

View 1 Replies View Related

General :: Can Switching File Systems Affect Email Backups And Other Data?

Nov 27, 2010

A while back I installed Dreamlinux 3.5 Gnome edition using ext2. When I attempted to use the email address books I imported from the Dreamlinux3.5 XFCE edition, which had been ext3, I discovered that none of the email addresses could be mailed to. I had to manually type in the addresses.

When I reinstalled Dreamlinux 3.5 Gnome using ext3, the same backup files that did not work in ext2 now work just fine. The question is, was this a "broken data" problem caused by the switch to ext2 file system or something else? Has anyone else experienced this?

The mail program is Thunderbird.

View 2 Replies View Related

General :: Use File Globbing To Copy All The Files In The /labs/data Directory?

Sep 13, 2010

Use file globbing to copy all the files in the /labs/data directory that end with a .out to the lab05 directory.

Use file globbing to copy all the files in the /labs/data directory that start with a c, d, or n into the lab05 directory.

View 5 Replies View Related

General :: Burn Data (file) With Command Line (at Terminal) To DVD Rewrite?

May 17, 2010

Now, I use Fedora Core (version 8) with core linux OS 2.6
I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.

I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).

View 4 Replies View Related

General :: Mount A Hard Drive With Pre-existing File System And Data?

Mar 23, 2010

I had a drive that kept kernel panic'ing so my data center recommended using the spare hard drive to reinstall OS on, and import the data from the old drive. (they checked the hardware, it wasn't the hardware) The new install is done, and I need to mount the old drive and get backups off it since my data center does not provide management whatsoever.

It's the same OS on both (Cent OS 5.4 32-bit) I'm an advanced user on windows, but linux gets me. I can ssh in, do basic stuff like setup IP ranges and restart services. I normally navigate the box through SFTP so I have a gui. WHM shows me my drives as such

Found Disk: hda
Found Disk: sdb

so I'm assuming SDB is my old drive and the drive I need to access. I attempted to follow instructions on

cyberciti.biz/faq/freebsd-adding-second-hard-disk-howto/

but I'm assuming FreeBSD would work differently and I wasn't totally sure what the labels of the file systems should be.

View 1 Replies View Related

General :: Send Data Through A USB Port To A Printer Which Recieve Text File?

Jul 7, 2010

I am trying to send data through a USB port to a printer which can recieve text file. Now to send the data to the printer I am doing echo "Hello World" > /dev/usb/lp0

but the data doesnt seem to be sent to the printer because I have an analyzer to monitor the data sent to the printer. Is there anything else which I need to do

View 1 Replies View Related

General :: Print Data To Laser Printer Using An Overlay Form And Save File As Pdf?

Jun 5, 2010

i have custom programs written in Basis pro5. Standard output to a pdf virtual printer works fine. Using pdftk to overlay on to a form is hit or miss.... There are products out there like Unform that are just too expensive for my company. i have purchased another product from a company that prints the forms to the laser perfectly but i am incapable of capturing them and saving them as pdf's for archiving/emailing/faxing and i don't much care for this company.

View 2 Replies View Related

General :: Mount: /dev/mapper/gegevens-Data Already Mounted Or /data Busy

Jul 14, 2010

A few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ca36fee

[code]....

Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:

umount /data/
umount: /data/: not mounted

If I want to mount the volume I get the following error:

mount -a
mount: /dev/mapper/gegevens-Data already mounted or /data busy

View 3 Replies View Related

Programming :: Use Data Of One File In Another File?

Jul 15, 2010

I have two file file1.txt file2.txt,both file have content like following

file1.txt
Voltage and current behavior for diodes.
v1 2 3 dc 5v
Voltage and current behavior for transistor

[code]....

View 7 Replies View Related

Programming :: Get The Data From A Tag In XML File?

Dec 3, 2008

have a tag in XML file in unix like this <EmailAddress>abc@gmail.com</EmailAddress> this tag is there for multiple times in the xml file and the data is in continuous line like below State>UN</State><Zip/><CompanyName/><EmailAddress>FDF@gmail.COM</EmailAddress><PromoType>UNKNOWN</PromoType></Promotion></PromotionList<State>UN</State><Zip/><CompanyName/><EmailAddress>zd4946@gmail.com</EmailAddress>I have to check the data in between bold tags is valid or not ... means have to check whether its a email address or not and have to find the length of the attribute means tag ...script is in kshsorry if its already asked...i checked but i didnt get Exatly matching result for my requirement

View 7 Replies View Related







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