3 ms·
s/rd/urse/g
by nologic01 3y ago
s/rd/urse/g
- samstave 3y agoHAHA this was one of my panel interview questions at Goooog' Q: "How do you do a search and replace for a string in VI" Me: I cant recall right now, i'd just google it"
- countspongebob 3y agoAlt proposed answer "I'd install emacs".
- mdaniel 3y agoWhat an insulting interview question, I hope it was just in jest or at the end looking to pad the time However, it did make me realize hidden therein is an actual interesting interview question, similar to the "describe what happens when you type an address into the browser's URL bar and hit enter": describe what happens after you type `:s/foo/bar` and hit enter. Followup version: what about `:%s/foo/bar`? The kind of thing that can be interesting to watch them reason through even if they don't know the answer, or even know what those syntaxes do.