Sponsored Content
Top Forums Shell Programming and Scripting How to compare two files line by line Post 302603035 by frappa on Wednesday 29th of February 2012 02:32:04 AM
Old 02-29-2012
hi,
have you tried
Code:
diff -y

see ya
fra
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

compare line in two files

Dear All i want to compate two diff file line by line. Kindly help me. file 1: 1;givi;01012000;wer 2;sss;02012000;rrr 3;ccc;03012000;ttt file 2: 0;uuu;01012000;lll 1;givi;01012000;wer 2;sss;02012000;rrr 3;ccc;03012000;ttt 5;givi;01012000;hhh Output1: comman line to both file... (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies

2. Shell Programming and Scripting

Compare multiple fields in file1 to file2 and print line and next line

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)
Discussion started by: gillesc_mac
7 Replies

3. Shell Programming and Scripting

Compare two text files line by line

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)
Discussion started by: my_Perl
4 Replies

4. Shell Programming and Scripting

Compare two files line by line

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)
Discussion started by: ravigupta2u
2 Replies

5. Shell Programming and Scripting

how compare first line of two files

Hi, Unix Gurus: I have a requirement which need to compare the first line of two files. e.g; file1 123 abc def file2 123 abcdef defe I need compare first line: in two file: in this case, two file contain same value in first line (123) anybody can help me. Thanks in advance (2 Replies)
Discussion started by: ken002
2 Replies

6. Shell Programming and Scripting

how to read the contents of two files line by line and compare the line by line?

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)
Discussion started by: mjavalkar
4 Replies

7. Shell Programming and Scripting

Perl how to compare two pdf files line by line

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)
Discussion started by: prasanth_babu
3 Replies

8. Shell Programming and Scripting

Compare fields in two files line by line

I am new to awk scripting. I want to do a field by word (field) comparison of two files File1.txt and File2.txt. The files contain a list of | (pipe) separated field. **File 1: ------------------- aaa|bbb|ccc|eee|fff lll|mmm|nnn|ooo|ppp rrr|sss|ttt|uuu|vvv** File 2: ... (7 Replies)
Discussion started by: dhruvmohan
7 Replies

9. Shell Programming and Scripting

How to read file line by line and compare subset of 1st line with 2nd?

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)
Discussion started by: pat_pramod
3 Replies

10. UNIX for Beginners Questions & Answers

Compare two files line by line in bash

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
BFBTESTER(1)						      General Commands Manual						      BFBTESTER(1)

NAME
bfbtester - Brute Force Binary Tester SYNOPSIS
bfbtester [-htv] [-d level] [-r rejects] [-o out-file] [-x max-execs] -a|[-sme] files ... DESCRIPTION
BFBTester is great for doing quick, proactive, security checks of binary programs. BFBTester will perform checks of single and multiple argument command line overflows as well as environment variable overflows. BFBTester can also watch for tempfile creation activity to alert the user of any programs using unsafe tempfile names. While BFBTester can not test all overflows in software, it is useful for detecting initial mistakes that can red flag dangerous software. OPTIONS
You must specify one or more of the following tests: -s Single Argument Test. -m Multiple Argument Test. -e Environment Variable Test. -a Selects all tests Other options: -h Print help. -t Enable tempfile monitoring. -v Print version string. -d level Set debug level (default = 0, max = 2). -r rejects Comma separated list of binaries to skip. -o out-file Output to out-file rather than stdout. -x max-execs Set maximum executables to run in parallel (default = 250). file Specific binary or a directory of binaries to test. OVERVIEW
You must specify at least one test to run and you must specify either a binary or a directory. Executable selection is now done in one of several ways: If the executable filename is specified with a leading slash (an absolute path), no selection is used and the supplied absolute filename is used. If there is no leading slash in the filename the selection is made in one of two ways (in this order): 1) Prepend file name with $PWD and test accesiblity 2) Search through $PATH and find first accessible executable The first one to succeed is the executable choosen. If the filename found is a directory, we walk the directory (one level deep) looking for executable binaries. Symbolic links are followed. You can specify binaries to skip (useful when loading a whole directory) by using the -r option. The following is a crash report: *** Crash </usr/bin/patch> *** args: -D [05120] envs: (null) Signal: 11 ( Segmentation fault ) Core? Yes This means "/usr/bin/patch" crashed when fed with an "-D" and a word 5,120 characters long: $ /usr/bin/patch -D AAA...5,120 characters...AAA (Numbers in brackets mean replace with a word that many characters long) BFBTester is very CPU intensive, and will open many files, so you probably don't want to run it on a production machine during it's busiest period. Just a warning... EXAMPLES
bfbtester -s /usr/bin Run the single argument test on all binaries in folder /usr/bin. bfbtester -ta patch traceroute Run all tests against patch and traceroute and run the tempfile monitor. bfbtester -a ./bfbtester Tests bfbtester (provided it's in the same directory). bfbtester -r kill /usr/bin/kill Does nothing. AUTHOR
This manual page was written by Karl Soderstrom <ks@debian.org>, for the Debian GNU/Linux system (but may be used by others). januari 23, 2001 BFBTESTER(1)
All times are GMT -4. The time now is 04:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy