readarray -t filtered < <(for i in "${myArray[@]}" ; do echo "\${i\}"; done | grep ${3|',"|}pattern${3})
      

      Shell language logo
      array filter

      Shell public recipes

      Shortcut: array.filter

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.