diff --git a/lab1/10215501406.sh b/lab1/10215501406.sh new file mode 100644 index 0000000..a50d518 --- /dev/null +++ b/lab1/10215501406.sh @@ -0,0 +1,13 @@ +#1 +for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 1.txt +sort -d 1.txt | uniq +sort -n 1.txt | uniq +sort -d 1.txt | uniq > 1_uniq_by_asc.txt +sort -n 1.txt | uniq > 1_uniq_by_num.txt +cat 1_uniq_by_asc.txt | uniq >> 1_uniq_total.txt +cat 1_uniq_by_num.txt | uniq >> 1_uniq_total.txt + +#2 +for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 2.txt +grep 'computer' 2.txt +grep -o 'computer' 2.txt | wc -l \ No newline at end of file diff --git a/lab1/10215501406.txt b/lab1/10215501406.txt new file mode 100644 index 0000000..a50d518 --- /dev/null +++ b/lab1/10215501406.txt @@ -0,0 +1,13 @@ +#1 +for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 1.txt +sort -d 1.txt | uniq +sort -n 1.txt | uniq +sort -d 1.txt | uniq > 1_uniq_by_asc.txt +sort -n 1.txt | uniq > 1_uniq_by_num.txt +cat 1_uniq_by_asc.txt | uniq >> 1_uniq_total.txt +cat 1_uniq_by_num.txt | uniq >> 1_uniq_total.txt + +#2 +for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 2.txt +grep 'computer' 2.txt +grep -o 'computer' 2.txt | wc -l \ No newline at end of file