#!/usr/bin/env bash__mian() { _data=$(ip r | grep '[0-9a-z]{12}\s.*proto.*link' -E) IFS_OLD=$IFS IFS=$'\n' for item in $_data; do echo "${item}" done IFS=$IFS_OLD}__mian