solus-packages/common/Scripts/find-old.sh
2020-12-28 23:46:02 +02:00

16 lines
275 B
Bash
Executable file

#!/bin/sh
if [ -e "old.lst" ]; then
rm old.lst
fi
for f in `ls -1`; do
if [ -d "$f/.git" ]; then
pushd $f
dt=`git log -1 --format=%cs`
popd > /dev/null
printf "%s %s\n" $dt $f >> old.lst
fi
done
sort -n old.lst > old-sorted.lst