#!/bin/bash echo Please select which list you want to print echo "1. admin (enter 1)" echo "2. system(enter 2)" echo "3. normal(enter 3)" read DATA if [ $DATA -eq 1 ] then awk -F":" '$3==0 {print}' /etc/passwd elif [ $DATA -eq 2 ] then awk -F":" '$3>=1&&$3<=500||$3==65534 {print}' /etc/passwd elif [ $DATA -eq 3 ] then awk -F":" '$3>500&&$3<65534 {print}' /etc/passwd else echo Wrong Input,Please re-run the software. fi