#Linux #CommandLine #array question: The output of ~$ ps ax | grep librewolf | g...

@pronounshe@lgbtqia.space

#Linux #CommandLine #array question: The output of
~$ ps ax | grep librewolf | grep -v grep | awk '{print $1}'
Creates this list of pids:
6968
7027
7072
7077
7086
7126
7187
7201
7207
7213

I want to store them in an array. The problem I'm running in to is the command line below doesn't store them in var "$lwf"

lwf=$(ps ax | grep librewolf | grep -v grep | awk '{print $1}')

When I then attempt to list the array elements with
printf "${#lwf[0]}\n"

The output is: 1
Which is not the first pid in the list above. The goal is to define the array in a #ShellScript. Thoughts? Suggestions?