3 ms·
What is the purpose of the sed?
by thinkloop 9y ago
What is the purpose of the sed?
- aplorbust 9y agoRemove Javascript and links to Javascript files that load ads, etc. Preserve only the desired content: text describing the boards, links to manufacturers websites, links to images.
- bproven 9y agoBeing partially sed stupid myself (or just plain stupid), I think its supposed to pull only the text between paragraph tags and save that to an htm file; then launch firefox and display that file, giving you only the pertinent text of the article (sans ads)
- adventureadmin 9y agoSpecifically, it modifies the file in place (-i), Matches lines between paragraph tags(/PatternStart/,/PatternEnd/), Then, doesn't delete those lines matching the pattern range (!d), which has the effect of deleting all other lines outside the pattern range when passed the in-place argument.
- singlow 9y agoLooks like it is deleting everything not contained in paragraph tags.