Sometime on Nov 26, () Revant Nandgaonkar assembled some asciibets to say:
I have dir1, dir2 and dir3
[snip]
i want to move all files from dir1/ and dir2/ to dir3/ except the common files like y.txt and z.txt
cd dir1 for i in *; [ ! -e ../dir2/$i ] && mv $i ../dir3; done cd ../dir2 for i in *; [ ! -e ../dir1/$i ] && mv $i ../dir3; done cd ../dir3 ls