I save into several text files (20 files) ... one big one ( >100k lines) for anything software related organized using labels like
curl tricks _____________
something here about curl
then most anything else goes into a second big file mostly grab bag ... then I have other specific files for : travel, nyc, todo, videos, etcthen from a terminal I can grep into each using say :
grep -B20 -A20 someSearchString workfile
in above the parms A and B return the surrounding lines from the matching line of txt file ... then to further filter output I sometime pipe output of above grep into another grep
using this process I find I can retrieve anything I have stored I just need to save each item into a meaningful label using above xxxx tricks ... this process works just fine ... have been using this for past decade or more
naturally all of these files are auto backed up to the cloud ... currently using mega.io yet previously was using dropbox
PS. I use a ubuntu linux laptop/desktop