Finished exercise 1 and 2 on lab 8
This commit is contained in:
12
Labb8/listbashusers2.sh
Normal file
12
Labb8/listbashusers2.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
BEGIN {
|
||||
print "User Shell"
|
||||
print "---- -----"
|
||||
FS=":"
|
||||
}
|
||||
|
||||
/bash/ { print $1 " "$7 }
|
||||
|
||||
END {
|
||||
print "\nNo more Bash-users to list"
|
||||
}
|
||||
|
Reference in New Issue
Block a user