Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Double the second value) perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",1*$1,$2,2*$3/e' bop.txt
- Final 1: perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",1.2*$1,$2,20*$3/e' bop.txt
- Final 2: perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",1.1*$1,$2,5*$3/e'
- perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",$1,$2,2*$3' bop.txt
- awk -F'[(,)]' '$1~/[ ]*private static final Height biomeHeight = new Height/\
- {$0=$1"("$2*1"F, "$3*2"F);";}1'
- perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",1.3*$1,$2,6*$3/e'
- BOPSmooth1: perl -i'.bak' -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",2.0*$1,$2,0.1*$3/e' bop.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement