scmuser created the topic: identical file validation using shell script?
Device a script that accepts two directory names, bar1 and bar2, and deletes those files in bar2 which are identical to their namesakes in bar1.
rajeshkumar replied the topic: Re: identical file validation using shell script?
for file in * ; do
if [ -f ../$2/$file ] ; then
cmp $file ../$2/$file >/dev/null 2>/dev/null && rm ../$2/$file
Twitt me @ twitter.com/RajeshKumarIn
Latest posts by Rajesh Kumar (see all)
- Git Errors and Solutions Database - February 15, 2020
- Git Command Tutorials Guide with Example - February 15, 2020
- Top 33 Free Jenkins Plugins and their Tutorials with step by step guide. - February 14, 2020