Search
 
SCRIPT & CODE EXAMPLE
 

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";
}
Comment

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: fsl remove_ext 
Shell :: how to uninstall bitninja 
Shell :: connect to open vpn with conf file linux 
Shell :: linux head command get 2nd line 
Shell :: git repo has too many changes vscode 
Shell :: brew sh 
Shell :: github user 
Shell :: run docker without iptables 
Shell :: disk usuage 
Shell :: command operative system linux 
Shell :: webtorrent cli how to take Quality output 
Shell :: how to install asterisk 16 on debian 10 
Shell :: bower install notify 
Shell :: install realsense viewer in jetson nano 
Shell :: fedora insall kdenlive 
Shell :: linix and 
Shell :: install vnm on ubuntu 
Shell :: gitignore new monified file ? 
Shell :: mount one directory to another in mac 
Shell :: cosmicjs 
Shell :: github extension for solidity language 
Shell :: my numpad stopped working in ubuntu 
Shell :: join two files horizontally unix 
Shell :: The lsb_release command ubuntu faq 
Shell :: remove history from git branch 
Shell :: bevy clone 
Shell :: how to check superwiser status in ubanti 
Shell :: yarn add v1.9.4 warning ../../package.json: No license field error Missing list of packages to add to your project. 
Shell :: head equivalent cmd windows of pipeline output 
Shell :: read not working in shell script 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =