linux - Use grep to find the words that have two 's' separated by a space -


i'm trying use grep find words have 2 's' separated space, 2 's' or more in words, , words contain 2 's'.

i tried these commands

ls|grep -e 's+'  ls|grep -e 's+'|grep \s  ls|grep -e s{2,\} 

the 2 first commands print words contains 1 's' or more, isn't i'm looking for, , last command prints words contain 2 's' side side ...

btw, i'm having trouble find exact same output of "grep -c", without "-c" argument ...

for example ls -r| grep s prints 14k approximately, , want find same result, without -c

thanks in advance

grep "s s" grep "s.*s" grep -e "^[^s]*s[^s]*s[^s]*$" 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -