1

Array from awk

view story
linux-howto

http://www.unix.com – I'm trying to get the output from awk into a bash array. Here is my script. Code: #!/bin/bash while :         do         app=$( osascript -e "tell application \"System Events\" to return name of every process whose frontmost is true" ) echo "$app"                 if [[ "$app" =~ [Jj]ava ]]                         then                         (HowTos)