Last active
December 1, 2019 12:06
-
-
Save codethereforam/32c33ac0a288d37df0ba7c9bac625153 to your computer and use it in GitHub Desktop.
过滤掉每行不是英文单词的
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# windows文件转Linux文件 | |
dos2unix a.txt | |
# 处理并生成新文件(先trim每行) | |
cat a.txt | awk '{$1=$1;print}' | grep -E '^[A-Za-z]{2,}$' > b.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment