Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

FS OFS unix

$ cat etc_passwd.awk
BEGIN{
FS=":";
print "Name	UserID	GroupID	HomeDirectory";
}
{
	print $1"	"$3"	"$4"	"$6;
}
END {
	print NR,"Records Processed";
}
Source by www.thegeekstuff.com #
 
PREVIOUS NEXT
Tagged: #FS #OFS #unix
ADD COMMENT
Topic
Name
1+8 =