Hi All,
I have been surfing to get some idea on how to compare same files from two different paths.
one path will have oldfiles directory and another path will have newfiles directory. Each main directories will have sub-directories in them and
each sub-directories inturn will have *.txt files(simple plain text file having several lines in them).
Note : one advantage is that :...
User Profile
Collapse
Profile Sidebar
Collapse
optimusprime
Last Activity: Apr 5 '13, 11:12 AM
Joined: Apr 2 '13
Location:
-
Script to compare files recursively using sdiff
-
optimusprime replied to Perl script to compare same filenames file line by line from 2 different pathin PerlThanks RonB for the information. unfortunately management doesn't want to have script which depends on the installing modules. since they expecting a single script which should run with minimum s/w requirement even without including/install modules on everytime/each servers.
But anyway on knowledge wise your information is much helpful. -
optimusprime replied to Perl script to compare same filenames file line by line from 2 different pathin PerlHi RonB,
As I said above am new to perl. Am still learning very basic of it. It's not homework I have done this in unix fairly but needs to be done in perlLeave a comment:
-
optimusprime started a topic Perl script to compare same filenames file line by line from 2 different pathin PerlPerl script to compare same filenames file line by line from 2 different path
Hi All,
am very new to perl, I have to shell script which compares 2 files line by line and get the difference (am using sdiff command)
Code:#!/bin/bash # cmp_dir - program to compare two directories # Check for required arguments if [ $# -ne 2 ]; then echo "usage: $0 directory_1 directory_2" 1>&2 exit 1 fi # Make sure both arguments
No activity results to display
Show More
Leave a comment: