diff --git a/lab1/10215501408.c b/lab1/10215501408.txt similarity index 75% rename from lab1/10215501408.c rename to lab1/10215501408.txt index 244286f..44950e5 100644 --- a/lab1/10215501408.c +++ b/lab1/10215501408.txt @@ -56,4 +56,32 @@ int main() { file_create("words.txt"); return 0; -} \ No newline at end of file +} + + + +//shell code +sort words.txt > opt1.txt +uniq opt1.txt > uniq1.txt + +sort -n words.txt > opt2.txt +uniq opt2.txt > uniq.txt + +cat uniq1.txt > override.txt +cat uniq.txt > override.txt + +cat uniq1.txt >> cct.txt +cat uniq.txt >> cct.txt + +grep -o "computer" words.txt > computer.txt + +grep -c "computer" words.txt + + +git add 10215501408.txt + +git commit -m “myc” + +git push -u origin master + +