3 ms·
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 intere
by johnmw 6y ago
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.
- ImTheMaddest 6y agoPretty dirty solution, but: cat list| cut -d ' ' -f 4 | xargs -I{} echo "https://news.ycombinator.com/item?id={}" https://news.ycombinator.com/item?id={}" | paste list - | cut -d ' ' -f 5-
- axaxs 6y agoSure. I just did it quickly in Python, it was all of about three or four lines long. I've gotten a bit rusty in Python so when I see a small task I try to give it a go.
- otterCompile 6y agoYou 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=" 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.