% Remember to use the lgrind style \Head{} \File{root\-logged\-in.sh}{2003}{Apr}{16}{18:46}{253} \L{\LB{\C{}\#!_\1bin\1sh}} \CE{}\L{\LB{}} \L{\LB{\C{}\#_Question_2,_shell_programming_assignment,_2003.}} \CE{}\L{\LB{\V{user}=\V{root}}} \L{\LB{[_\N{\$}\C{}\#_-eq_1_]_\&\&_user=\$1}} \CE{}\L{\LB{}} \L{\LB{\K{for}_\V{wtmp}_\K{in}_\1\V{var}\1\V{log}\1\V{wtmp}\*;\K{do}}} \L{\LB{____\V{last}_\-\V{R}_\-\V{f}_\N{\$wtmp}_\N{\$user}}} \L{\LB{\K{done}_\2}} \L{\LB{\|_\V{egrep}_\-\V{v}_\S{}\4\5\2s\*\$\|\5wtmp.\*_begins\4\SE{}_\2}} \L{\LB{\|_\V{awk}_\S{}\4\{\$1=\3\3;\$2=\3\3;print\}\4\SE{}_\2}} \L{\LB{\|_\V{cut}_\-\V{b}_\N{3}\-\N{12}_\2}} \L{\LB{\|_\V{uniq}_\-\V{c}}}