Created
September 6, 2016 06:27
-
-
Save Reder/f410e3799c400aadc599a45de616eea7 to your computer and use it in GitHub Desktop.
Script to remove headers generated by TruncNotes(http://www.trunknotes.com).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in ./notes/* | |
do | |
ruby -i.bak -ne 'print if not /Title:|Timestamp:|Created:|Last\sAccessed:|Times\sAccessed:|Tags:|Metadata:/' "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment