rm files.* R=/texlive/Master :>files.lists.x for i in `find $R/texmf/lists -type f ` do grep -v "^/" $i | awk '{print $1}' >> files.lists.x done sort < files.lists.x | uniq | awk '{print $1}' | sed '/^$/d' > files.lists sort < files.lists.x | awk '{print $1}' | sed '/^$/d' > files.lists.all diff files.lists files.lists.all | grep ">" > files.lists.dupl rm files.lists.x P=`pwd` (cd $R; find texmf -type f >> $P/files.find.x) (cd $R; find texmf-doc -type l >> $P/files.find.x) (cd $R; find texmf-doc -type f >> $P/files.find.x) (cd $R; find texmf-dist -type l >> $P/files.find.x) (cd $R; find texmf-dist -type f >> $P/files.find.x) (cd $R; find bin -type l >> $P/files.find.x) (cd $R; find bin -type f >> $P/files.find.x) (cd $R; find info -type f >> $P/files.find.x) (cd $R; find readme.html >> $P/files.find.x) (cd $R; find man -type l >> $P/files.find.x) (cd $R; find man -type f >> $P/files.find.x) sort < files.find.x > files.find rm files.find.x comm -23 files.find files.lists > files.find.only comm -13 files.find files.lists > files.lists.only