|
|
@ -56,4 +56,32 @@ int main() |
|
|
|
{ |
|
|
|
file_create("words.txt"); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//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 |
|
|
|
|
|
|
|
|