Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory comparing

Status
Not open for further replies.

AIRAK

MIS
Jan 28, 2003
3
CR
Hi all,

Anybody can helpme with: I want to compare the files in two difrerent directories and show the difference, ei:

Directory A Directory B
file.a file.a
file.b file.b
file.c file.d
file.d

Which combinated command I do to do it and print "file.c" like not are in the B directory?
 
Goto DIRA:

ls > /tmp/listA

Goto DIRB:

ls > /tmp/listB

Goto /tmp:

sdiff listA listB > diff.log

more diff.log
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top