You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 regels
428 B

2 jaren geleden
  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