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









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

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.