I have a directory with source code and want to figure out the files whose content has changed.
Suppose I have two version of development work called hstmy.1.0 and hstmy.1.7. Directory structure are basically the same. However there may be additional files and directories, whose contents have changed (new source codes, bug fixes, etc).
hstmy.1.0
baseLib
bin
awk
ksh
prog
tcsh
fortran
others
scripts
source
hstmy.1.7
baseLib
bin
awk
ksh
prog
tcsh
fortran
others
scripts
source
I want to know which files differ and copy them to a temporary directory
As example, hstmy.1.0 is as shown below
hstmy.1.0
baseLib
common.hh
Complex.hh
CSpInterp1D.hh
CSpInterp2D.hh
Darwin.hh
DFT1.hh
DFT2.hh
dftUtils.hh
DynBaseObj.hh
FPnInterp1D.hh
FPnInterp2D.hh
GenFunc.hh
Interp1D.hh
Interp2D.hh
invers.hh
LinAlg.hh
LinInterp1D.hh
LinInterp2D.hh
List.hh
Matrix.hh
ObjFunc.hh
Optimize.hh
ParseEl.hh
Parsing.hh
Poly1.hh
Poly2.hh
Random.hh
Simplex.hh
Stack.hh
String.hh
Tensor2.hh
Tree.hh
Vect2.hh
Vector.hh
Verbose.hh
bin
awk
addNoise-dat.awk
addNoise-dat.awk.pdf
addNoise-dat.awk.ps
addNoise-xt.awk
awkNotes.txt
change-log.awk
change-text.awk
checkSRDist.awk
checkSRDist-dat.awk
checkSRDist-ry.awk
checkSRDist-xt.awk
createAnmly-zc.awk
example.awk
jcd2zc.awk
log2cmd.awk
modeli2cmod.awk
n02-z30.ry
n02-z30.ry.bck
n02-z30.xt.bck
removeSndSp-zc.awk
removeSRDist-dat.awk
removeSRDist-ry.awk
removeSRDist-xt.awk
result
test.ry
test.ry.bck
test.txt
test.txt.bck
test.xt
test.xt.bck
timeDistAbs.txt
timeDistAbs.txt.bck
timeDistAbs.txt.bck.bck
xt2dat.awk
xt2dat-v2.awk
zc2cmd.awk
zc2zfc.awk
zp2pmd.awk
ksh
check-srdist.ksh
comp-xt.ksh
convert-zfc-fcmod.ksh
cr-data-tinv.ksh
crmisfit.ksh
crmodel.ksh
hseis-processing.ksh
pl-jcd-zc.ksh
plmisfit.ksh
plmodel.ksh
plry.ksh
plryxt.ksh
plxy.ksh
raytrac.ksh
rmsrdist.ksh
tdarwin.ksh
tsimplex.ksh
prog
getmisf
getpdf
getvel
linint
raytrac
tdarwin
tracepdf
tsimplex
tcsh
browseDir.tcsh
checkSRDist.tcsh
create-data-tinv.tcsh
createDocs.tcsh
createMisfit.tcsh
createModel.tcsh
createTrvt.tcsh
file0p12-22344.txt
file0p12-23234.txt
file0p12-77364.txt
file0p12.txt
file0p12.txt.bck
hseis-processing.tcsh
plotMisfit.tcsh
plotModel.tcsh
plotryxt.tcsh
plotxy.tcsh
printTable.tcsh
raytrac.tcsh
removeFiles.tcsh
removeRays.tcsh
removeSRDist.tcsh
removeText.tcsh
removeTrvt.tcsh
renameFiles.tcsh
renameFiles-tcsh-to-csh.run
replaceText.tcsh
sortList.tcsh
tcshrc.csh
tdarwin.tcsh
test.tcsh
tsimplex.tcsh
zfc2fcmod.tcsh
fortran
generate_rgaussian
generate_rgaussian.f90
generate_rgaussian.o
hseistools.mod
linint
linint.f90
linint.o
rgaussian.f90
rgaussian.o
split_files_tt.f
tt_resid.f
Makefile
Makefile.bck
Makefilediag
Makefile.old
others
asac2xy.cc
asacdump.cc
convtv.cc
cwt.cc
fourier.cc
pp2sac.cc
sac.h
segy.h
sucrpi.cc
sufppk.cc
source
CSpLay.hh
ElMap.hh
FPnLay.hh
GetMisf.cc
GetPDF.cc
GetVel.cc
Layer.hh
LayInt.hh
LayMod.hh
LinLay.hh
Map.hh
ModMisfit.hh
RayField.hh
Ray.hh
RayTrac.cc
Rdt.cc
Source.hh
Surface.cc
Tdarwin.cc
Tomog.hh
TraceMis.cc
TracePDF.cc
Tsimplex.cc
VelMod.hh