Sponsored Content
Full Discussion: Cross checking two files
Top Forums Shell Programming and Scripting Cross checking two files Post 302519554 by vaibhavkorde on Wednesday 4th of May 2011 09:28:01 AM
Old 05-04-2011
Cross checking two files

i have two files which contains some fields separated by columns as
Code:
03/29/1999           08:48:12            02          172.16.114.50
03/29/1999           09:08:00          480          172.16.112.100

Both of the files do have the same format
I want the script which will take two such files as input and give the output as the count of number of lines that exactly matched in both the files
How to deal with this?

thanks in advance
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

checking for files on ftp...

I have automated my ftp session as given in on of the previous threads as: #! /usr/bin/ksh HOST=remote.host.name USER=whoever PASSWD=whatever exec 4>&1 ftp -nv >&4 2>&4 |& print -p open $HOST print -p user $USER $PASSWD print -p cd directory print -p binary print -p get xyz wait... (3 Replies)
Discussion started by: jithinravi
3 Replies

2. UNIX for Advanced & Expert Users

how to login into another ip and checking for the files

Hi All, Good Day. need one help regarding unix script. i have to check whether the particular file is there or not in another ip address. suppose....there is file in this ip address 2.160.64.130 in particualar location. i have to veify this from another ip adress(Say 2.160.64.131).if the file... (1 Reply)
Discussion started by: saikumar_n
1 Replies

3. Shell Programming and Scripting

files cross over

I have many files (File 1, File 2, File 3, ...) in same directory. The format of all these files are same. What I would like to do is to combine all these files into a single file via cross over. Example) >>File 1 look like this. f1 01 1.0 f1 02 2.0 f1 03 3.0 f1 04 4.0 f1 05 5.0 f1 06... (2 Replies)
Discussion started by: Jae
2 Replies

4. UNIX for Dummies Questions & Answers

Checking files extension

Hi, I need one line command to display all files that ends with .scr. Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr. I tried some commands,... (2 Replies)
Discussion started by: gwgreen1
2 Replies

5. Shell Programming and Scripting

checking thorough files and renamingit

hi all am very new to unix scripting..... i have a work right now that i should complete by End of Day :( scenario is i get some x number of files with .csv extension on a specified path at my operating system. the names of the files are as follows . the record lay out is same... (0 Replies)
Discussion started by: rajesh_tns
0 Replies

6. Shell Programming and Scripting

awk cross-referencing between two files

I need to make my sloppy, existing code (non awk) more efficient and I seem to be terrible with awk :wall: I've tried around quite a bit, maybe you guys can conjure up a quick solution... file1: 2 SOL 563 2 SOL 565 3 SOL 589 2 SOL 603 1 SOL 612 1 SOL 621... (1 Reply)
Discussion started by: origamisven
1 Replies

7. UNIX for Dummies Questions & Answers

Cross complie linux make files onto a windows 7 machine using PGI Cygwin

Hello, I am very unfamiliar with linux/unix (don't even know the difference), but am trying to get some linux software to run on my Windows machine for my research. I have the makefiles for the software, and it is designed to be compiled in the PGI complier, which I also have. When i... (6 Replies)
Discussion started by: roba87
6 Replies

8. Shell Programming and Scripting

Checking dir and files!

Hi Guys, I wrote a code which checks for the text and directory. If the path is incorrect than it should echo that particular path not found. I can create a different if statments but I want to do this in just one if statment with the use of "or" (||). I have succssfully executed this code but now... (2 Replies)
Discussion started by: dixits
2 Replies

9. Shell Programming and Scripting

Checking in a directory how many files are present and basing on that merge all the files

Hi, My requirement is,there is a directory location like: :camp/current/ In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
vboxmode(1)						    Linux System Administration 					       vboxmode(1)

NAME
vboxmode - detect format of isdn voice file SYNOPSIS
vboxmode [OPTION] [OPTION] [...] FILENAME DESCRIPTION
Vboxmode detects format of isdn voice files and au files (sun audio format). OPTIONS
-q, --quiet Don't print information about the file, only detect format and return an error code. -h, --help Show summary of options. -v, --version Show version of program. RETURN CODE
The format of the file is returned as an error code: o for .au files a value between 128 and 150 o for vbox files a value between 2 and 6 o for unknown format or errors 255 SEE ALSO
autovbox(1), rmdtovbox(1), vboxtoau(1), vboxcnvt(1), vbox(5) AUTHOR
This manual page was written by Andreas Jellinghaus <aj@dungeon.inka.de>, for Debian GNU/Linux and isdn4linux. ISDN 4 Linux 3.1pre4 2000/09/15 vboxmode(1)
All times are GMT -4. The time now is 09:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy