diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-03-28 11:18:54 -0600 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-03-28 11:18:54 -0600 |
commit | ca59138a2aef96960381f986b8c683634e4d8e63 (patch) | |
tree | 16c62f8a2b3bfe7ad55053294095f70a85d19613 /src/plugins/readability/recompute_READABILITY_N.sh | |
parent | cc959fda4fac18f1c429158d1ffea24692276310 (diff) |
tweak: move things around
Diffstat (limited to 'src/plugins/readability/recompute_READABILITY_N.sh')
-rwxr-xr-x | src/plugins/readability/recompute_READABILITY_N.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/readability/recompute_READABILITY_N.sh b/src/plugins/readability/recompute_READABILITY_N.sh new file mode 100755 index 0000000..85d3352 --- /dev/null +++ b/src/plugins/readability/recompute_READABILITY_N.sh @@ -0,0 +1,8 @@ +#!/bin/bash +function sedr(){ + find ./ -type f -exec sed -i -e "$1" {} \; +} ## e.g., sedr "s/target/replacement/g" + +READABILITY_N=$(wc -c readability.js | cut -d " " -f 1) +sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1000/g" + |