if [[ "\${string\}" == *"\${substring\}"* ]]; then
        ${3:echo "\${string\} contains: \${substring\}"}
      fi
      
      Shell language logo

      string contains

      Shell public recipes

      Shortcut: string.contains

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.