code:nice_scripts
Differences
This shows you the differences between two versions of the page.
— | code:nice_scripts [2021/03/08 17:57] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Nice Scripts ====== | ||
+ | ===== Welcome to Shell Scripting! ===== | ||
+ | ==== Parsing Configs ==== | ||
+ | The file.csv file content is : | ||
+ | < | ||
+ | user0001; | ||
+ | user0011; | ||
+ | </ | ||
+ | |||
+ | And the shell program is just : | ||
+ | { while IFS=';' | ||
+ | $p1 --user2 $u2 --password2 $p2 ... done ; } < file.csv | ||
+ | |||
+ | ==== Bash Readarray ==== | ||
+ | |||
+ | Better than the above '' | ||
+ | '' | ||
+ | assignments from inside the loop work. | ||