Advertisement
Tariqul_Islam

Read in an Array

Aug 9th, 2020
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.08 KB | None | 0 0
  1. #!/bin/bash
  2. while read line
  3. do
  4.     arr=(${arr[@]} $line)
  5. done
  6.  
  7. echo ${arr[@]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement