We compare the same line no. in both the files.
Fields in Line 1 of both file match.
In Line 2 all the fields (lll, mmm, nnn, ooo, ppp) donot not match with all fields (rrr, sss, ttt, uuu, vvv) in line 2 of File 2. Similarly the 5th field of 3rd line in both the files donot match.
Hence Line no. 2 and Line no. 3 should get echoed by bash.
Both files will follow an order.
Last edited by Don Cragun; 09-22-2013 at 01:38 PM..
Reason: Add CODE tags
Hello,
I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions
1. file1 is only a few thousand lines at most and file2 is greater than 2 million
2. I need to... (7 Replies)
Hi all
I need help on comparing two texts files line by line and print the total number of lines matched. Any help is appreciated. Thanks in advance. (4 Replies)
Query:
There are two files as below -
/home/rgupta/input/file.txt.arch (source file)
/home/rgupta/output/file.txt (destination file)
Files details are attached for the reference.
Scenario:
File /home/rgupta/input/file.txt.arch picked up by an application xyz. Application xyz does... (2 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hi Experts,
Would really appreciate if anyone can guide me how to compare two pdf files line by line and report the difference to another file. (3 Replies)
Hi,
i have a scenario were i should compare a few fields from each line then increment a variable based on that.
Example file
989878|8999|Y|0|Y|N|V
989878|8999|Y|0|N|N|V
989878|8999|Y|2344|Y|N|V
i have 3 conditions to check and increment a variable on every line
condition 1 if ( $3... (4 Replies)
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Hi All,
I have situation where my file looks like this log.file. ID Start time IP SQL
1256152 05-Aug-15, 11:25:06 MST 10.54.20.33 Select * from TES
1004768 05-Aug-15, 11:25:06 MST 10.54.20.33 Select dummy
323323 05-Aug-15, 12:00:06 MST 10.15.20.77 ... (1 Reply)
Hello All!
Thanks for taking time out and helping.
My issue is, I have two files that have file names in it. Now, i need to go through each line of both the files and when the file names are different, i need to rename the file. Below is the example:
File1</
fil1ename1.txt
filename2,txt... (2 Replies)
Discussion started by: svks1985
2 Replies
LEARN ABOUT DEBIAN
skycoor
skycoor(1) General Commands Manual skycoor(1)Name
skycoor - Convert coordinates
Synopsis
skycoor [-bdgjv] [-n ndec] ra1 dec1 sys1 ... ran decn sysn
or
skycoor [-vbjg] [-n ndec] @listfile
Description
skycoor converts coordinates between the J2000, B1950, and galactic coordinate systems, rounding to a specified number of decimal places
and printing in degrees or hh:mm:ss.sss dd:mm:ss.sss. Input coordinates may also be in either format, and the system (J2000, B1950, or ga-
lactic) may be in upper or lower case. No spaces are allowed within the individual coordinates
Options-b B1950 (FK4) output
-d RA and Dec output in degrees
-e Ecliptic longitude and latitude output
-g Galactic longitude and latitude output
-i r|d|
Input units (r=radians, d=degrees, else hh:mm:sss dd:mm:sss)
-j J2000 (FK5) output
-n <num>
Number of decimal places in output RA seconds
-o <num>
Offset coordinates by this many arcseconds
-p RA and Dec proper motion in milliarcseconds/year
-q Output system, including equinox
-r <RA> <Dec> <RA> <Dec>
Angular separation between two RA, Dec pairs
-s Output ra= dec= epoch= radecsys= for sethead
-v Print more intermediate information
-w Convert RA, Dec equatorial coordinates to x,y,z
-x Convert x,y,z equatorial coordinates to RA, Dec
-y <epoch>
Epoch of coordinates in years
Author
Doug Mink, SAO (dmink@cfa.harvard.edu)
9 November 2001 WCSTools skycoor(1)