bash: show ip function