Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=0
- echo -e "string1\nstring2\nstring3" | while read line
- do
- arr[$i]="$line"
- (( i++ ))
- done
- echo ${arr[@]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement