2023-02-05 02:11:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
function sedr(){
|
|
|
|
find ./ -type f -exec sed -i -e "$1" {} \;
|
|
|
|
} ## e.g., sedr "s/target/replacement/g"
|
|
|
|
|
2023-02-14 01:07:23 +00:00
|
|
|
READABILITY_N=$(wc -c readability.js | cut -d " " -f 1)
|
2023-02-27 21:29:30 +00:00
|
|
|
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1000/g"
|
2023-02-05 02:11:56 +00:00
|
|
|
|