apl logo

A.P. Lawrence

Information and Resources for Unix and Linux Systems
Bloggers and the self-employed
RSS FeedsGet APLawrence.com by RSS




February 2008: These tests are all badly in need of update.
Some questions are incorrect because of changing technology and others just make no sense in today's IT world.
I do intend to update these, but it's a big project..

SCO Skills Test

Copyright 2002,2003 A.P. Lawrence

Next
Previous
Return to Start Page
Get Complete 1007 Question Set

M

Assume the the file "shadow" contains the following on an OSR5 system:
adm:*::0:0
testuv:LqP1Me8MIY88I:10372::
john::10656::
What will this script produce when it reaches the "john" entry?
#!/bin/ksh
IFS=":"
cat shadow | while read line
do
set $line
echo $1 $2
done

Answer