mirror of
https://github.com/eddyem/lectures.git
synced 2026-03-20 08:41:01 +03:00
add 3 lectures for SFedU
This commit is contained in:
15
Komp_obr_SFedU/Materials4Pract/01/awkscript1
Normal file
15
Komp_obr_SFedU/Materials4Pract/01/awkscript1
Normal file
@@ -0,0 +1,15 @@
|
||||
BEGIN {
|
||||
print "List of users and shells"
|
||||
print " UserName \t HomePath"
|
||||
print "-----------------------"
|
||||
FS=":"
|
||||
}
|
||||
{
|
||||
print $1 " \t " $6
|
||||
}
|
||||
END {
|
||||
home=ENVIRON["HOME"]
|
||||
name=ENVIRON["USER"]
|
||||
print "-----------------------"
|
||||
print "Your name is " name " and home is " home
|
||||
}
|
||||
Reference in New Issue
Block a user