On Wed, 25 Oct 2017 14:07:25 +0200, Ralf Mardorf wrote: >user_name=$(getnet passwd $i | cut -d: -f1) ^^^^^^ getent Oops, a typo.