User submitted

This commit is contained in:
邱哲瀚 2020-10-24 16:45:15 +08:00
parent 6bdc35b140
commit 251768a249
1 changed files with 6 additions and 0 deletions

View File

@ -2,7 +2,13 @@
#将答案填写在下方空白区域
#/********** Begin **********/#
touch c.txt
touch d.txt
cat a.txt | tr -s '\n' | grep -Eo "\s*[a-zA-Z]+\s*$" | sed s/[[:space:]]//g > c.txt
cat b.txt | tr -s '\n' | grep -Eo "^\s*[a-zA-Z]+\s*" | sed s/[[:space:]]//g > d.txt
cat d.txt c.txt | sort | uniq -u
#/********** End **********/#