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


ADVERTISEMENT

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 :: 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 :: Using Sed To Manipulate CSV File

Feb 3, 2010

I have been using sed to manipulate a csv file but I have one problem that I can't solve. The csv file has many line and many columns. If in a particular line column 2 has a certain value I want to replace that value with the value in column 5 in the same line.

View 5 Replies View Related

Software :: General Tool To Manipulate Text Configuration Files

Mar 25, 2010

Is there any Linux tool to create new or modify exiting key/value pairs in text configuration files? For example, to change a setting in xorg.conf, or change something in etc/networking/interfaces? I know it could be done by sed or by perl scripts, but it could be easier to have a program for this purpose. There are many difficulties for this job that the program should consider, and I am facing nearly all of them:

- Some configuration files may have sections. Like in Windows-type INI files (for example: "[something]"), or like Section in xorg.conf. More sections with the same name can occur, like in xorg.conf.

- If the key/value pair originally does not exist, then the program should add it. But not to the end of the file, but tothe end of a predefined section.

- Config files can have remark lines. Remark text can be even at the same line than the key/value pair. After modifying the value, the original remark text should not change at the end of the line. The remark-starting symbol is not always.
- The values in configuration files are not always simple numbers or simple words, but in rare cases, they are composed by more words, for example: item=name address phone

And of course, we can have remark at the end, like this: item=name address phone # remark text

- The key-value separator depends on the file. Some files use "key=value" format, some other use "key value" format, or even "key1 key2 value", like xorg.conf. The as separator can also occur.

- Case sensitivity can also be an issue.

- Sometime to desired task is not to modify a value, but to add or remove a line beginning remark to a certain line.

I think that managing all these possible cases by a perl or sed program is nearly impossible. I begun to write a C program, but maybe there is already one?

View 6 Replies View Related

Programming :: Get Data From Multi Lined Text File Using Awk / Sed Or Perl - Grep And Cut Not Upto Par?

Jul 1, 2010

I need a loop that pulls out the user name into a variable and then pulls out the LastUpdate field into another variable so I can then perform a comparison against the last update field. Requirements are AIX tools including AWK, SED and Perl I am writing a script to check AIX users password expiration dates and if they are within the alerting period (ie. 7 days etc) it will email the user. I will release the full script into the public domain once completed. The text file I want to parse is formatted like:

Code:

colettel:
password = XSON0m4SdIQDw
lastupdate = 1260829398
andrewwa:

[code].....

View 4 Replies View Related

General :: Read Three Files And Print Output In A New File?

Sep 9, 2010

file1: have DNA sequences and each sequence will begin with > symbolfile2: have protein sequence and each sequence will start with > symbolfile3: BLAST result of file2 and each result will start with query= .my problem is i have to make a report file by combining these three in such way that first sequence from file1,first sequence from 2nd file and first result from file3 should be printed in a report file

View 14 Replies View Related

General :: Error - 533 Read Only File System When Ftp Files To Moxa

Jun 15, 2010

I'm having problem copying files from my laptop (windows xp) to moxa (linux) using ftp.

The error im getting is "533 read only file system".

Tried reboot and fsck but problem remains.

mount output below:

View 5 Replies View Related

General :: Read From Input File And Append To Multiple Files?

Nov 22, 2010

I wanted to be as clear as possible. I have to add hundreds of new servers to hundreds of configuration files in Nagios. Here is a sample structure:

servers.txt has:
SERVER3
SERVER4

[code]....

View 10 Replies View Related

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

General :: Read A Text File And Ftp Files Using Bash W/out Leaving The Ftp Prompt

Oct 9, 2009

I have a script almost working except for 1 thing. What I'm trying to do is read a file that has the files that need to be FTP'd using a bash script. I have everything working except the reading of the file. It works outside of the ftp script I've wrote but once I put it in the FTP script it doesn't.

Here's the Script:

#Here's where the problem is that I know of

I've been playing w/ the exclamation points to see if that could be the problem, but so far no luck.

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

Ubuntu :: How To Manipulate Iso Files

Jan 17, 2010

What we want to do: be able to see the contents of an iso image (what files exist in the iso image) as well as being able to add data to the iso file or remove them.In order to be able to see the contents of an iso image we have to follow a process similar of that like mounting a device. In order to do so let us assume that we have the file: example.iso, under /home folder.In order to do so, we have to install the program isomaster (go to synaptic package manager and type isomaster and the program will be displayed) and then open it (via applications->sound&video). Then, browse to where the iso image exists and with the options: remove, extract, e.t.c. do the necessary steps you want. In order to save this "new" iso image with the additions you have made, you have to save it as an iso file. Go to file, save as and your new iso file is ready to be burned.

View 3 Replies View Related

OpenSUSE Install :: View/access/read The Files From Data Partition?

Dec 1, 2010

I am a total noob when it comes to opensuse. I just read the reviews and comments from forums taht's why I wanna try this alternative. I have 1 physical drive that has two partitions. 1 is dedicated for my windows OS (20 GB) and the other for my data (approx. 100GB).

How can I install opensuse 11.3 to just 1 partition (20GB) and leave my data partition (approx. 100GB) as it is? Can I still view/access/read the files from my data partition after I have successfully install opensuse 11.3 to my Os partition?

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

Ubuntu :: Error While Loading Shared Libraries /lib/libsepl.so.1 - Cannot Read File Data

Jul 12, 2011

I've created quite a predicament with my desktop installation and would prefer to be able to salvage it instead of having to reformat/re-install Ubuntu.

Quite a lot happened and here's my best recollection:

- My Ubuntu installation stopped working and I could not get the desktop to load.

- I backup up my entire home directory by creating a zip file along with other small zip files. I used Alt + Del + F1 to get the CLI to do this.

- I then did different things trying to get the desktop to load.

- I did a apt-get upgrade, to try and get it to work; this was not sucessful.

- Working through several dependency issues I finally got sudo apt-get ubuntu-desktop upgrade to work, but it did not finish completely. I started to get out of memory errors. I am assuming this was because too much hard drive space was taken up by the zip files I had created

-I could not boot and do anything properly after that. Every attempt to modify the filesystem (to free up space) results in an error "Read Only File System". The root file system was not being mounted and I would see root@none on the CL

- Looking on the boot loader I now have Ubuntu 9.10 2.6.24-generic installed

- I burnt a new installation of Ubuntu 10.4 LTS

- Using Live CD I tried to see if I could free up some space and get the system back to more stable state,

However this was NOT sucessful. I tried to mount my drive by sudo mount -t ext3 <dev> <dir> but I keep getting the following error: error while loading shared libraries: /lib/libsepol.so.1: cannot read file data: Input/output error

View 2 Replies View Related

Fedora :: Using Sed To Manipulate A Line In A File?

Nov 16, 2009

My latest rpm package building project is a ham radio program called rmsgw. The source code tarball is a "make" and "make install" affair. It's Debian style Linux format fails badly on a Fedora install, so some tweaking of a configuration file is needed.I presume sed is the right tool for this job. I have no experience with sed and I don't want to spend a week or more in 'info sed' and doing endless trial and error if I can avoid it. I need to change one line in a text file named rmsgw.mk with a command(s) in the spec file.The original line:

Code:
PKG_LIBS := -lwl2k -lrms -lmysqlclient -lxml2
The line as it needs to be for 'make' to succeed to build the binaries:

[code]...

View 5 Replies View Related

General :: Samba Does Not Keep Windows Attributes (read Only Files As Read Only For Example)?

Jul 16, 2011

I want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:Quote:

[global]
workgroup = DOMAIN
server string = File Server

[code]...

View 3 Replies View Related

Programming :: Manipulate Application To Look In Different Location For File?

Aug 23, 2010

I have an application which looks in a particular directory for it's settings. For example varsetting.txt. These settings are stored in a text format and can be edited easily. I would prefer to keep this setting.txt file on a USB stick rather than the HDD for portability so that I can easily use the same settings on two linux PC's without having to redit them everytime. I have tried but cannot manipulate the application to look in a different location for this file, do you know if it is possible to "point" linux to another location when looking for the file?

View 2 Replies View Related

Ubuntu :: Samba - Windows Read Files From A Home File Server With An Ext4 File System?

Jan 28, 2011

Can windows read files from a home file server with an ext4 file system? or do I have to partition the drive with the server (ext4) and an ntfs partition with the files on?

View 4 Replies View Related

Software :: Manipulate Text File To Allow Import To Excel?

Jun 11, 2010

Have managed to create a simple script to poll the various printers we have at our company for a page count via SNMP. At the moment the script echos the printer name to a text file and then the snmp output is appended to the next line. In my rush I thought by using sed to add a comma to the end of each line would mean it would import in to excel nicely. So rather than having:

Printer 1,
45536,
Printer 2,

[code]...

View 3 Replies View Related

General :: Read Data From The Sosreport?

Feb 18, 2010

how can i open the sosreport after generating it from the systemi need to know how to view the data inside it

View 1 Replies View Related

General :: Creating Multi Volume Tar Files?

May 29, 2010

full snapshot of ArchLinux Repo for x86_64I want to use this as my restore backup should I need to reinstall Arch without network support.How do I build several *tar volumes of my /mount/my_repo to fit into 4.5GB DVDs ... the thing is 18 GB size...How do I extract all the *tar created to a folder later on...? is it the same as extracting a single *tar, will tar find all volumes in the same directory level so as to continue extracing or do I need to merge them in some way

View 1 Replies View Related

Networking :: Serial Port : Read Data, Not Reading Complete Data?

Mar 5, 2010

I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port

Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)

[code]...

View 5 Replies View Related

Programming :: Get Data From Serial Port Function Read() Blocks When Data Not Available?

Jun 11, 2009

I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:

//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;

[code]...

View 1 Replies View Related

General :: Utility To Read DIMM VPD Data?

Sep 9, 2010

Do we know of any utility that would read DIMM VPD data in the system? DIMMs on PCIe Card

View 3 Replies View Related

Programming :: Data Directory In Automake - Data Is Always Read-only ?

May 9, 2010

I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.

How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.

View 1 Replies View Related

General :: Disc Able To Read And Write Data For All Users?

Feb 15, 2010

How make, that disc be able to read and write data for all users? I have Ubuntu 9.

View 2 Replies View Related

Programming :: Read Tutor About Multi Threading, But Not Getting Correctly

Mar 1, 2010

I am new to Programming. I would like to learn some multi threading in C. how to start. I read tutor about multi threading, but not getting correctly.

View 2 Replies View Related

General :: Share Files Between Windows 7 On A Dual/multi Boot Computer?

Jan 26, 2010

Just go myself a new computer and thinking of how set it up. I have win7 HP and will probably install at least some version of Ubuntu on it shortly to have dual boot. Might come other Linux distros too in the future. I have a 1TB HDD and my question is what's the smartest way to share files on all OS's? In what format?

I was thinking of ~100GB for Windows for apps and games etc. ~20-50GB for Ubuntu and some third partition, where I store my common files like media, pics, docs, downloads and stuff, taking the rest of the free space.

What filesystem should the shared partition be? Is there some smart way to get windows home directories and linux home directories to point to the same place on the shared partition or would it be recommended to just keep them separated?

View 5 Replies View Related







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