Write a Shell Script that makes use of grep to isolate the line in /etc/passwd that contains your login details. code example
Example: Write a Shell Script that makes use of grep to isolate the line in /etc/passwd that contains your login details.
# !/bin/bash
username='whoami'
grep "^${username}: " /etc/passwd