In bash I\'m trying to collect my grep results in array, each cell holding each line. I\'m downloaing urls with this line
wget -O index -E $CurrentURL
readarray GREPPED < <(grep "some expression" index) for item in "${GREPPED[@]}" do # echo echo "${item}" done
Oh, and combine those -v greps like so:
-v
egrep -v '\.(jpg|gif|xml|zip|asp|php|pdf|rar|cgi|html?)'