temp=\${string%%\${substring}*} && index=\${#temp\}
      ${3:echo "index of \"\${substring\}\" in \"\${string\}\" is \${index\}"
      }

      Shell language logo
      string first index substring

      Shell public recipes

      Shortcut: string.index_of

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.