Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. i=0
  2. echo -e "string1\nstring2\nstring3" | while read line
  3. do
  4. arr[$i]="$line"
  5. (( i++ ))
  6. done
  7.  
  8. echo ${arr[@]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement