Re:Most-favorited Hacker News posts
by johnmw on Thursday September 03, 2020 @01:41AM
(#24361074)
Thank you! Now I just wonder - did you use some command line magic to do this, or did you compose it manually? (no complaints if you did, but it would be interesting to know how to do that in a line of script). Anyway, thanks again.
[ Parent
| on HN ]
Re:Most-favorited Hacker News posts
by otterCompile on Thursday September 03, 2020 @05:25AM
(#24362267)
You can do this with Notepad++ and Block-Selection in like 1,2 Minutes:
- Paste the original list
- Block-Select (Alt + Pressed Mouse1) a block-line behind (trailing) all entries; I admit this step is hard to describe with words, but currently im unable to provide an image/video
- Paste "https://news.ycombinator.com/item?id="
- Block-Select all ids from original list and paste it at the end
- You may be finished now or you can Regex-Replace " +" with " " to remove the long spaces between the link title and the link itself.
Block-Selection + Copy-Paste is amazingly fast for doing things like that.
Re:Most-favorited Hacker News posts
by ImTheMaddest on Thursday September 03, 2020 @02:29AM
(#24361310)
Pretty dirty solution, but:
cat list| cut -d ' ' -f 4 | xargs -I{} echo "https://news.ycombinator.com/item?id={}" | paste list - | cut -d ' ' -f 5-