echo "24 3.3.3.0" | awk '{print "mgmt_cli -r true add network name NET_"$2 " " "subnet" " " $1 " " "mask-length" " " $2}' # OUTPUT: mgmt_cli -r true add network name NET_3.3.3.0 subnet 24 mask-length 3.3.3.0