idt Posted August 13, 2021 Report Share Posted August 13, 2021 When downloading multiple hands to provide to investigators, it is important that the names of the players under investigation are removed, often replaced as Player 1 and Player 2, to ensure that any bias of the investigators is minimised. The names of their opponents are also often replaced with Anon, although this is not essential.Is there a way of replacing players' names while or after downloading several months' worth of hands? If not, is there a possibility of such a feature being developed? Quote Link to comment Share on other sites More sharing options...
hrothgar Posted August 13, 2021 Report Share Posted August 13, 2021 When downloading multiple hands to provide to investigators, it is important that the names of the players under investigation are removed, often replaced as Player 1 and Player 2, to ensure that any bias of the investigators is minimised. The names of their opponents are also often replaced with Anon, although this is not essential.Is there a way of replacing players' names while or after downloading several months' worth of hands? If not, is there a possibility of such a feature being developed? awk grep sed Quote Link to comment Share on other sites More sharing options...
idt Posted August 21, 2021 Author Report Share Posted August 21, 2021 awk grep sed Having avoided technical matters whenever possible, is there an idiot's guide or some other advice you could help me with?Thanks in anticipation Quote Link to comment Share on other sites More sharing options...
hrothgar Posted August 21, 2021 Report Share Posted August 21, 2021 https://unix.stackexchange.com/questions/2434/is-there-a-basic-tutorial-for-grep-awk-and-sed Quote Link to comment Share on other sites More sharing options...
mycroft Posted August 22, 2021 Report Share Posted August 22, 2021 or if you're not a unix person (but why would you not be?) you can do a global search and destroy replace throughout in Word(pad) or Notepad++. But regex is much, much better, especially if you want to remove the opponents as well, and they're not the same all the time. A final alternative is a CSV editor (you can tell it to separate on '|' rather than ',', and export it the same way). But that's also unpleasant. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.