Anonymous
public text v1 · immutable[@] cat a
lol
omg
foo
doo
[@] ar=( $(grep o ./a) )
[@] echo "Number of matches found is ${#ar[@]}"
Number of matches found is 4
[@] echo "${ar[@]}"
lol omg foo doo[@] cat a
lol
omg
foo
doo
[@] ar=( $(grep o ./a) )
[@] echo "Number of matches found is ${#ar[@]}"
Number of matches found is 4
[@] echo "${ar[@]}"
lol omg foo doo