您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20 行
428 B

  1. touch text1.txt
  2. for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> text1.txt
  3. export LC_ALL=C
  4. sort text1.txt | uniq
  5. sort -n text1.txt | uniq
  6. sort text1.txt | uniq > letter.txt
  7. sort -n text1.txt | uniq >> number.txt
  8. echo -e "computer\ndata\nscience\nengineering\nscience\nengineeringc\ncomputer\ncomputer\necnu\ndata" > text2.txt
  9. grep computer text2.txt
  10. grep -c computer text2.txt