tmp="\${string//\$substring\}" && frequency=\$(((\${#${1}\} - \${#tmp\}) / \${#substring}))
      ${0:echo "\${frequency\}"}
      
      Shell language logo

      string substring count

      Shell public recipes

      Shortcut: string.substring.count

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.