Skip to content

Instantly share code, notes, and snippets.

@sant-sh
Created July 4, 2020 11:33
Show Gist options
  • Save sant-sh/c5dd2bbd8188954c0a6ad220a20b5f46 to your computer and use it in GitHub Desktop.
Save sant-sh/c5dd2bbd8188954c0a6ad220a20b5f46 to your computer and use it in GitHub Desktop.
Bua khtm che
username="santsah"
current_user="$USER"
start_time="$(date +%M)"
end_time="$(expr $start_time + 1)"
while [ "$end_time" > "$start_time" ]
do
if [[ "$current_user" == "$username" ]]
then
echo "$username has logged in"
exit
else
echo "$username has not logged in"
exit
fi
done
@Biswa24
Copy link

Biswa24 commented Jul 4, 2020

Bhia khatam che, Loop infinite chal rha h

@sant-sh
Copy link
Author

sant-sh commented Jul 4, 2020

Duuur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment