HomeBash shell How to print only first column, separated by some symbol ( : ,) in file ? byAlFarhat •July 28, 2015 0 p4.sh #!/bin/bash echo " Usernames are: " cat /etc/passwd | awk -F: '{print $1}' :./p4.sh Tags: Bash shell linux shell scripting Facebook Twitter