Onno (VK6FLAB)

Anything and everything Amateur Radio and beyond. Heavily into Open Source and SDR, working on a multi band monitor and transmitter.

#geek #nerd #hamradio VK6FLAB #podcaster #australia #ITProfessional #voiceover #opentowork

  • 3 Posts
  • 31 Comments
Joined 1 year ago
cake
Cake day: March 4th, 2024

help-circle


  • Google Lens says:

    Which one of these commands is correct?
    
    A sed -e 's/\b(\w+)\b/echo \1 | rev/g' file.txt
    
    B: sed 's/b\w+\b/echo & | rev/ge' file.txt
    
    Csed -e 's/(\w+)/$(echo \1 | rev)/g' file.txt
    
    D: sed 's/([a-zA-Z]\+\)/\n&\n/g; s/\n\(\)\(.*\)\(\)\n/\3\2\1/g; s/\n//g' file.tx
    

    It’s interesting that Google doesn’t even get all the text. I had to manually extend the selection and that still misses the “t” on the end of answer D, munches C and more alarmingly changes the case for “-E”.