Get the App
SLTechnology News&Howtos  ›  Servers  › 

Returns an array in shell

Shulou Source: shulou.com Published: 2022-06-02 23:21:08 10月02日 Update

#! / bin/shget_array () {aq123b = "123c" = "abc" echo "$a\" $b\ "$c"} echo\ (`get_ array`\) eval "tt=$ (echo\ ($(get_array)\)" echo "- XXX ${tt [0]}" echo "- XXX ${tt [1]}" echo "- XXX ${tt [2]}" echo "- XXX ${tt [3]}" echo " -XXX ${tt [4]} "echo"-XXX ${tt [5]} "

Tags: Array Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Redmi Huawei Xiaomi MariaDB