how to take array input in shell script
declare -a array_name
echo "How many groups you want to enter?"
read group_count
echo "enter $group_count groups: "
echo $group_count
for(( c = 0 ; c < $group_count ; c++))
do
read abc_elements
# while read abc_elements
# do
array_name[$c]="$abc_elements"
# done
done
echo -e "${array_name[@]}"
Also in C++:
- ubuntu set new default terminal
- linux convert pdf trennen
- how to restore corrupeted git file
- git show remote url
- Command 'ng' not found, but can be installed with:
- remove folders from remote git
- yarn emojis
- How to use .AppImage on Manjaro
- android logs for app on terminal
- new terminal tab in linux
- git push with ssh output
- apply gitignore after commit
- pause in bash
- psycopg2 error install
- git remove added file before commit
- docker container
- how to update git
- djanog shell change password
- anandsiddharth/laravel-paytm-wallet for laravel 7 github
- shell get given line
- What is the difference between git push origin and git push origin master
- shell script function read
- putty ubuntu
- git remove from folder