Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Sed command to change log.info to print

  • 02-09-2020 11:47AM
    #1
    Registered Users, Registered Users 2 Posts: 5,761 ✭✭✭


    So i've loads of code in my repo with the log.info log.debug etc etc. I want to run a sed command to change them to print commands so theyll show in console for pycharm while im troubleshooting. Something like
    sed -i  's/log.*(/print(/g'  filename
    

    How to do this. And for an extra brownie point, how to undo it


Comments

Advertisement