#!/bin/bash raw="DNS=0.0.0.0DNS=" IFS= read -rd '' kvs < <(awk -F= 'NF == 2 {print $2}' <<< "$raw") declare -p kvs
Standard input is empty
declare -- kvs="0.0.0.0 "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!