How to print only first column, separated by some symbol ( : ,) in file ?

p4.sh

#!/bin/bash


echo " Usernames are: "
cat /etc/passwd | awk -F: '{print $1}'


:./p4.sh

Post a Comment

Previous Post Next Post