Sometimes your brushes have textures rotated or translated from their defaults, for various reasons, accidental or intentional. So my current goal is to select EVERY SINGLE SURFACE on a brush and basically click the texture that it already has to apply it again so that it would be in the default position (I'm sure there's a technical term for this). I cannot find a Radiant button to "apply default texture position to all selected brushes". So I came up with script in UNIX to do this, it may be dangerous but hell it worked for me:
#!/bin/sh
sed -r 's/ -?[0-9]+ -?[0-9]+ -?[0-9]+ -?[0-9]+.[0-9]+ -?[0-9]+.[0-9]+ 134217728 -?[0-9]+ -?[0-9]+/ 0 0 0 0.500000 0.500000 134217728 0 0/g' |
sed -r 's/ -?[0-9]+ -?[0-9]+ -?[0-9]+ -?[0-9]+.[0-9]+ -?[0-9]+.[0-9]+ 0 -?[0-9]+ -?[0-9]+/ 0 0 0 0.500000 0.500000 0 0 0/g'
It seems to only affect brushes (not patch mesh), which is what I wanted. I think this may actually do some bad stuff but I don't know what yet.