I have a file with a couple of lines and in each one there is process id and its generation. I need to print how many processes there are in each generation and do it with only one loop and have to do it with grep and wc function but can't find how to use grep in my IDE and not as a terminal function. I saw it should be something like:
grep -o '\<WORD\>' | wc -l
but it's not something I can write in IDE..
Any ideas?