What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-03-17 17:45:05
write a bash script that accepts a text file as argument and calculates number of occurrences of each words in it and return them as key value pairs
file=/home/stefan/ooxml1.txt for word in $(sed 's/[^A-Za-z]/ /g' $file | tr " " "\n" | sort -u) do echo -n "$word " grep -c $word $file done | sort -k2 -n Add solution -
-
Javascript 2022-03-12 07:20:23
grepper gold
Grepper Gold is a way to reward contributors for putting in new code answers and providing feedback on current answers. Grepper Gold can then be redeemed for Grepper Addon's. 1. How niche the answer is. The more niche that answer the more Gold you are a... Add solution -
Python 2022-03-12 00:40:07
python insert
# The insert() method inserts an element to the list # at a given index. # Syntax: list_name.insert(index, element) my_list = ["Add", "Answer"] my_list.insert(1, "Grepper") print (my_list) > ['Add', 'Grepper', 'Answer'] Add solution -
Best helpers
Ranking is empty