I have two lists like these below:
abc.domain.com defg.domain.com hijklmn.domain.com abc.domain.com/sub/ defg.domain.com/anothersub/ hijklmn.domain.com/thirdsub/ I need to make these two lists appear like so:
abc.domain.com?ref=abc defg.domain.com?ref=defg hijklmn.domain.com?ref=hijklmn abc.domain.com/sub/?ref=sub defg.domain.com/anothersub/?ref=anothersub hijklmn.domain.com/thirdsub/?ref=thirdsub How to I accomplish this in vi/vim?