Hello everyone,
Basically, I am trying to locate and copy the newest .json bookmark backup in my .mozilla/firefox/w987sdg9.default/bookmarkbackups directory.
I tried this
Code:
ls -t ~/.mozilla/firefox/b1ahb1ah.default/bookmarkbackups/ | head -1
which does return the newest file, but only the filename itself. I found
readlink, but I haven't gotten that to output a full path which I can then feed to copy.
So, it seems to me that find might work well here, and I know how to find based on absolute dates, but not relative.
Is there a "good" way to do this? Thanks!