Commit ebeb41f7 authored by Nikitha Moosapet's avatar Nikitha Moosapet

Parsing Script for user exists or not

parent b4a40d25
#! /bin/bash
if id -u "$1" >/dev/null 2>&1; then
echo 'user exists'
else
echo 'user does not exists'
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment