Which among the following will print userid and home dir in the following pattern “user1:/home/user1”
A. awk `{print $1 “:” $6}` /etc/passwd
B. awk `{print $1 “:” $7}` /etc/passwd
C. awk `{print $2 “:” $6}` /etc/passwd
D. awk `{print $2 “:” $7}` /etc/passwd
Answer:A
Which among the following will print userid and home dir in the following pattern “user1:/home/user1”
A. awk `{print $1 “:” $6}` /etc/passwd B. awk `{print $1 “:” $7}` /etc/passwd C. awk `{print $2 “:” $6}` /etc/passwd D. awk `{print $2 “:” $7}` /etc/passwd