Sponsored Content
Full Discussion: comparing csv files
Top Forums Shell Programming and Scripting comparing csv files Post 302582188 by sukhdip on Thursday 15th of December 2011 05:16:18 AM
Old 12-15-2011
Hi vbe thanks for advising me the right way to learn...
as per my little knowledge i tried to make pseudo code...

1.Find *data1* in prop file
2. Count value against *data1*
3. Store in var1
4. Search and count *data1*.csv
5. Store the count in var2
6. if var1=var2
return 0
7. else
trigger mail
8.done

hope i m on right way ....guide me further @vbe also tell me some good links n books to learn shell scripting....
thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Last field problem while comparing two csv files

Hi All, I've two .csv files as below file1.csv abc, tdf, 223, tpx jgsd, tex, 342, rpy a, jdjdsd, 423, djfkld Where as file2.csv is the new version of file1.csv with some added fields in the end of each line and some additional lines. lfj, eru, 98, jkldj, 39, jdkj9 abc, tdf, 223, tpx,... (3 Replies)
Discussion started by: ganapati
3 Replies

2. Shell Programming and Scripting

Comparing 2 csv files and matching content

Hello, I have the following problem: There are two csv files csv-file #1: aaa1, aaa2, ... aaan aaa1, bbb2, ... bbbn aaa1, ccc2, ... cccn bbb1, bbb2, ... bbbn ... zzz1, zzz2, ... zzzn csv-file #2: aaa1, matchvalue1 ccc1, matchvalue2 (7 Replies)
Discussion started by: ghl10000
7 Replies

3. Shell Programming and Scripting

Comparing Strings in 2 .csv/txt files?

EDIT: My problems have been solved thanks to the help of bartus11 and pravin27 This code is just to help me learn. It serves no purpose other than that. Here's a sample csv that I'm working with - #listofpeeps.csv Jackie Chan,1954,M Chuck Norris,1930,M Bruce Lee,1940,M This code is... (13 Replies)
Discussion started by: chickeneaterguy
13 Replies

4. Shell Programming and Scripting

removing duplicate records comparing 2 csv files

Hi All, I want to remove the rows from File1.csv by comparing a column/field in the File2.csv. If both columns matches then I want that row to be deleted from File1 using shell script(awk). Here is an example on what I need. File1.csv: RAJAK,ACTIVE,1 VIJAY,ACTIVE,2 TAHA,ACTIVE,3... (6 Replies)
Discussion started by: rajak.net
6 Replies

5. Shell Programming and Scripting

Comparing 2 difference csv files

Hello, I have about 10 csv files which range from csv1 - csv10. Each csv file has same type/set of tabs and we have around 5-6 tabs for each of the csv file which have slightly different content(data). A sample of CSV1 is shown below: Joins: Data related to Joins, it can be any number of... (2 Replies)
Discussion started by: bobby1015
2 Replies

6. Shell Programming and Scripting

Comparing 2 CSV files and sending the difference to a new csv file

(say) I have 2 csv files - file1.csv & file2.csv as mentioned below: file1.csv ID,version,cost 1000,1,30 2000,2,40 3000,3,50 4000,4,60 file2.csv ID,version,cost 1000,1,30 2000,2,45 3000,4,55 6000,5,70 ... (1 Reply)
Discussion started by: Naresh101
1 Replies

7. Shell Programming and Scripting

Comparing two large unsorted csv files

Hi All, My requirement is to write a shell script to compare two large csv files. I've created sample files for explaining my problem i.e., a.csv and b.csv contents of files: ----------------- a.csv ------ Type,Memory (Kb),Location HD,Size (Mb),Serial # XT,640,D402,0,MG0010... (2 Replies)
Discussion started by: vasavi
2 Replies

8. Shell Programming and Scripting

Comparing Select Columns from two CSV files in UNIX and create a third file based on comparision

Hi , I want to compare first 3 columns of File A and File B and create a new file File C which will have all rows from File B and will include rows that are present in File A and not in File B based on First 3 column comparison. Thanks in advance for your help. File A A,B,C,45,46... (2 Replies)
Discussion started by: ady_koolz
2 Replies

9. Shell Programming and Scripting

Comparing two CSV files

I have two csv files and im trying to compare them. e.g. SAMPLE DATA: file one: ZipCode Name 20878 Washington 10023 Missouri 20304 Maryland file two: ID Name City ZipCode 11654 ... (11 Replies)
Discussion started by: dan139
11 Replies

10. UNIX for Beginners Questions & Answers

awk assistance - Comparing 2 csv files

Hello all, I have searched high and low for a solution to this, many have come really close but not quite what I'm after. I have 2 files. One contains GUID's, for example: 8121E002-96FE-4C9C-BC5A-6AFF20DACECD 84468F30-F3B7-418B-81F0-0908E80792BF A second file, contains a path to the... (8 Replies)
Discussion started by: tirmUK
8 Replies
AuMonitorNotifyEvent(3) 				     Library Functions Manual					   AuMonitorNotifyEvent(3)

Name
       AuMonitorNotifyEvent - monitor notify event structure

Structures
       #include <audio/audiolib.h>

       typedef union _AuEvent
       {
	   . . .
	   AuMonitorNotifyEvent aumonitornotify;
	   . . .
       }AuEvent;

       typedef struct _AuMonitorNotifyEvent
       {
	   int type;
	   AuUint32 serial;
	   AuBool send_event;
	   AuServer *server;
	   AuTime time;
	   AuFlowID flow;
	   unsigned char element_num;
	   unsigned char format;
	   unsigned char num_tracks;
	   unsigned short count;
	   unsigned short num_fields;
	   AuUint32 data;
	   AuUint32 data1;
	   AuUint32 data2;
       }AuMonitorNotifyEvent;

Members
       type	 The event type.  MonitorNotify events are type AuEventTypeMonitorNotify.

       serial	 The serial ID of the event expanded from the 16 bit value sent by the server.

       send_event
		 AuTrue if the event came from a SendEvent protocol request.

       server	 The connection to the audio server that the event was read from.

       time	 The server time in milliseconds when the event was generated.

       flow	 Specifies the ID of the flow that caused the event.

       element_num
		 The index of the ExportMonitor element that gnerated this event.

       format	 The  format of the monitor data.  Currently, the following formats are defined: AuFormatULAW8, AuFormatLinearUnsigned8, AuFormat-
		 LinearSigned8,   AuFormatLinearSigned16MSB,   AuFormatLinearUnsigned16MSB,   AuFormatSignedLinear16LSB,   and	 AuFormatLinearUn-
		 signed16LSB.  Taken from the ExportMonitor element.

       num_tracks
		 The number of tracks in the monitor data.  Taken from the ExportMonitor element.

       count	 Always 0.

       num_fields
		 Always 2.

       data	 Monitor data.

       data1	 Monitor data.

       data2	 Monitor data.

Description
       MonitorNotify events will be sent to clients with flows containing ExportMonitor elements.

See Also
       AuAnyEvent, AuElementNotifyEvent, AuErrorEvent, AuGrabNotifyEvent.

       audiolib - Network Audio System C Language Interface

audiolib - events						       1.9.3						   AuMonitorNotifyEvent(3)
All times are GMT -4. The time now is 05:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy