Answers for "FS OFS unix"

0

FS OFS unix

$ awk -F':' '{print $3,$4;}' /etc/passwd
41 41
100 101
101 102
103 7
105 111
110 116
111 117
112 119
Posted by: Guest on April-10-2021
0

FS OFS unix

$ awk -F':' 'BEGIN{OFS="=";} {print $3,$4;}' /etc/passwd
41=41
100=101
101=102
103=7
105=111
110=116
111=117
112=119
Posted by: Guest on April-10-2021
0

FS OFS unix

$ cat etc_passwd.awk
BEGIN{
FS=":";
print "Name\tUserID\tGroupID\tHomeDirectory";
}
{
	print $1"\t"$3"\t"$4"\t"$6;
}
END {
	print NR,"Records Processed";
}
Posted by: Guest on April-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language