|
|
|
|
|
by AtomicOrbital
2228 days ago
|
|
I have a main text file I refer to and make edits in throughout the day ... as a developer I keep any programming specific nuggets here ... each topic has its area as in ubuntu tricks ___________ keeping one file makes it easier to search or browse ... separately I have other text files for broad categories like nyc, shop, bb ( catch all ) from a terminal ( Ubuntu ) I enter this to search svl 'some string here' where svl is an alias to a bash script containing stringPattern=$1 cat ~/MEGA/notes.txt | grep --color=auto -B 10 -A 15 -i "$stringPattern" I use mega nz for cloud storage so all this is mirrored on any box I use ... been using similar my entire career so this file today has over 90,000 lines of text notes ... I find such a process essential to be productive across a vast array of problem domains |
|