Browse Source

README: Update clean_code() function to process more non-ASCII chars.

work-f1-1.10.2
Damien George 7 years ago
parent
commit
6df2b092ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      README.md

+ 2
- 1
README.md View File

@@ -35,7 +35,8 @@ files before committing them here:
A shell function to do this processing is:
```sh
function clean_code() {
cat $1 | awk "{sub(/[\t ]*\r/,\"\")}1" | expand -t 4 | tr \\200\\221\\222\\223\\224\\226\\231\\265\\327\\342 \'\'\'\"\"-\'ux\' > tmp$$
chmod 644 $1
cat $1 | awk "{sub(/[\t ]*\r/,\"\")}1" | expand -t 4 | tr \\200\\205\\211\\221\\222\\223\\224\\226\\231\\244\\261\\265\\302\\327\\342 \'??\'\'\"\"\\-\'??u?x\' > tmp$$
mv tmp$$ $1
}
```


Loading…
Cancel
Save