Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count=1
- saveIFS="$IFS"
- IFS=$'\n'
- array=($(<TEST.txt))
- IFS="$saveIFS"
- echo ${array[0]} # output: EXAMPLEfoo
- echo ${array[1]} # output: EXAMPLEbar
- for i in "${array[@]}"; do echo " "AD"$count = "$i""; $((count=count+1)); done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement