bash multi-line array - Axtarish в Google
Bash shell has syntax for arrays, values should be separated by space and wrapped with round brackets.
27 мар. 2020 г. · The script looks in /etc/hosts.d/ and creates a list of available files to insert into /etc/hosts and replace the old content between two markers.
23 апр. 2018 г. · To do so: when you split your command over multiple lines, end each non-end line with “\” to indicate continuation on the next line – then iterate over it.
30 нояб. 2017 г. · You need to mask the newline to express that the set command continues on the next line. The \ also needs to be right before the newline, because otherwise it ...
8 окт. 2009 г. · And if you are using this multi-line String variable to write to a file, put the variable around "QUOTES" like echo "${String}" > /tmp/ ...
21 нояб. 2012 г. · All you should need to do is add a \ (backslash) at the end of each line and it should be good to go. So yours will look like:
23 янв. 2022 г. · #!/bin/bash declare -a messages=( "Hello" "World" ) echo "${messages[@]}". Add Own solution. Log in, to leave a comment.
Novbeti >

Краснодар -  - 
Axtarisha Qayit
Anarim.Az


Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023