Sponsored Content
Top Forums Shell Programming and Scripting search & merg data from 3 files Post 302635775 by Scrutinizer on Sunday 6th of May 2012 07:48:41 AM
Old 05-06-2012
I had changed depth to mag in the mean time (col 6 instead of col 5) plus an extra if the line is empty which should get rid of the empty lines..

Last edited by Scrutinizer; 05-06-2012 at 09:42 AM..
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Merg files

i have: file1 contains: 123abc file2 contains: 123 abc i used: paste file1 file2 > file3, and the output looks like this: 123abc 123 abc i used: cat file3 | awk '{print $1, $2}' > file4, result: 123abc 123 my intention is to get file looks like this: 123abc123 abc when i... (9 Replies)
Discussion started by: tjmannonline
9 Replies

2. Shell Programming and Scripting

Help with complex merg of files with common field

Please help, I am new to shell Programming. I have three files each containg a unique text (key) field (e.g. ABCDEF, XCDUD as shown below), line return followed by some data of which there can be more then one instance. In addition, in some cases there may be no data but only a key field. Please... (18 Replies)
Discussion started by: gugs
18 Replies

3. UNIX for Dummies Questions & Answers

Search for & edit rows & columns in data file and pipe

Dear unix gurus, I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this: adam peter blah blah blah blah blah blah car 01 30 200 02 31 400 03 57 121 .. .. .. .. .. .. n y... (8 Replies)
Discussion started by: tintin72
8 Replies

4. Shell Programming and Scripting

How to search & compare paragraphs between two files

Hello Guys, Greetings to All. I am stuck in my work here today while trying to comapre paragraphs between two files, I need your help on urgent basis, without your inputs I can not proceed. Kindly find some time to answer my question, I'll be grateful to you for ever. My detailed issue is as... (10 Replies)
Discussion started by: NARESH1302
10 Replies

5. Shell Programming and Scripting

Search & Replace in Multiple Files by reading a input file

Hi, I have a folder which contains multiple config.xml files and one input file, Please see the below format. Config Files format looks like :- Code: <application name="SAMPLE-ARCHIVE"> <NVPairs name="Global Variables"> <NameValuePair> ... (0 Replies)
Discussion started by: haiksuresh
0 Replies

6. Shell Programming and Scripting

Difference of two data files & writing to an outfile.

Hi Everyone, I have two files i.e. one file2 contains today's data and the other file1 contains Yesterday's data. The data in the files contains 226 columns and the data for the coulums separated by a Pipe "|" delimiter. Now, I have 4 Primary keys (coulumns) by which I have to compare file2 and... (10 Replies)
Discussion started by: filter
10 Replies

7. Shell Programming and Scripting

awk/sed to search & replace data in first column

Hi All, I need help in manipulating the data in first column in a file. The sample data looks like below, Mon Jul 18 00:32:52 EDT 2011,NULL,UAT Jul 19 2011,NULL,UAT 1] All field in the file are separated by "," 2] File is having weekly data extracted from database 3] For eg.... (8 Replies)
Discussion started by: gr8_usk
8 Replies

8. Shell Programming and Scripting

Script to search for a character in files in a Directory & remove it

Hi All, Am new to both Unix & this Forum - Need some help on a script that I am trying to write: In a Directory i have few text files which might or might not contain some text that I am trying to find. Once that text is found in any of the files, it needs to be removed from the file ... (6 Replies)
Discussion started by: rituparna_gupta
6 Replies

9. Shell Programming and Scripting

Search & Replace content of files using gsub in awk

Hi,I have 2 files master.txt & reference.txt as shown below & i require o/p as mentioned in file 3 using awk but content is not replacing properlymaster.txt:... (15 Replies)
Discussion started by: siramitsharma
15 Replies

10. Shell Programming and Scripting

Search & Replace in Multiple Files by reading a input file

I have a environment property file which contains: Input file: value1 = url1 value2 = url2 value3 = url3 and so on. I need to search all *.xml files under directory for value1 and replace it with url1. Same thing I have to do for all values mentioned in input file. I need script in unix bash... (7 Replies)
Discussion started by: Shamkamde
7 Replies
Geo::Coordinates::ITM(3pm)				User Contributed Perl Documentation				Geo::Coordinates::ITM(3pm)

NAME
Geo::Coordinates::ITM - Convert coordinates between lat/lon and Irish Transverse Mercator VERSION
This document describes Geo::Coordinates::ITM version 0.02 SYNOPSIS
use Geo::Coordinates::ITM qw( ll_to_grid grid_to_ll ); my ( $lat, $lon ) = grid_to_ll( $east, $north ); my ( $east, $north ) = ll_to_grid( $lat, $lon ); DESCRIPTION
Convert back and forth between Irish Transverse Mercator grid and WGS84. The conversion code was stolen wholesale from <http://bit.ly/ZqpUA>. http://svn.geograph.org.uk/svn/branches/british-isles/libs/geograph /conversionslatlong.class.php Nothing is exported by default. The exportable functions are "ll_to_grid" and "grid_to_ll". INTERFACE
"ll_to_grid" Convert a latitude, longitude (WGS84) coordinate pair into an ITM easting and northing. my ( $east, $north ) = ll_to_grid( $lat, $lon ); "grid_to_ll" Convert an ITM easting, northing pair to a WGS84 latitude, longitude. my ( $lat, $lon ) = grid_to_ll( $east, $north ); BUGS
Please report any bugs or feature requests to "bug-geo-coordinates-itm@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. AUTHOR
Andy Armstrong "<andy@hexten.net>" Code gratefully stolen from <http://bit.ly/ZqpUA> http://svn.geograph.org.uk/svn/branches/british-isles/libs/geograph /conversionslatlong.class.php LICENCE AND COPYRIGHT
Copyright (c) 2009, Andy Armstrong "<andy@hexten.net>". This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. perl v5.14.2 2012-03-31 Geo::Coordinates::ITM(3pm)
All times are GMT -4. The time now is 04:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy