On 23/10/14 11:50, Nikos Andrikos wrote: > What is the proper way to check that each member of the $RET list is a > valid username and if not prompt the user to specify a new correct > list?
This might be helpful: # usage: if is_username_valid root; then echo yes; fi is_username_valid () { getent passwd -- "$1" >/dev/null } Regards, S -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5448f7ea.20...@debian.org