这是一个本人学习 csapp 的 learning 库
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.

12 lines
336 B

  1. #!/bin/bash
  2. head -n 50000 /dev/urandom | base64 > random;
  3. head -n 50000 random > random2;
  4. rm random;
  5. mv random2 random;
  6. sort --unique random > unique_sort_by_asc;
  7. sort --unique --numeric-sort random > unique_sort_by_num;
  8. cat unique_sort_by_asc > totall;
  9. cat unique_sort_by_num >> totall;
  10. grep -o "com" totall | wc -l > number_of_com;