Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to find out, when a recoll-index was last updated?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Since it stores the indexes under $HOME/.recoll/xapiandb I would simply find the newest file under there:

find ~/.recoll/xapiandb -type f -printf '%T@\t%T+\n' | sort -nr | head -1 | cut -f2

This prints out all files with their epoch time and human-readable time, then sorts it so the newest is at the top and then prints only the human readable time of the first one. Adjust the printf according to what output you need.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.