Updated: 2012-11-08 03:09 EST
awk
and uniq
for this test.Your Final Exam schedule is posted in the ICT office and on the Course Home Page.
Review last week. Did you do everything assigned last week?
awk '{print $1}'
wc file | awk '{print $1}'
find . -ls | awk '{print $1}'
$1
to $2
to print the second field, etc.$1
to $NF
to print the LAST field in each lineuniq
last | awk '{print $1}' | sort | uniq -c | sort -n
sort foo bar
sort each file and display the results one after the other, or does it combine both files into one input and sort the whole thing together? Where does the output of sort
go?echo one "two three" four 'five "six" seven' eight
echo " * " ; echo ' * ' ; echo '' * '' ; echo "" * ""
echo ?nosuchfile ; ls ?nosuchfile ; echo "?nosuchfile" ; ls "?nosuchfile"
echo hi >a ; cp a b >file
echo hi >a ; ln a b >file
echo hi >a ; mv a b >file
echo hi >a ; rm a >file
head x >x ; tail x >x ; sort x >x ; wc x >x ; ls x >x
echo hi >.a ; echo * ; echo ?? ; echo [.]*
echo hi | cat /etc/passwd
echo hi >a ; cp a b | head
echo hi >"?abc" ; rm \?abc ; rm ./'?abc' ; rm ./././\?abc
echo a b c >out ; echo a b >out c ; echo >out a b c ; >out echo a b c
echo hi >a ; ls a ??? >out 2>errfile ; ls a ??? >out 2>&1
umask 111 ; rm -f foo ; echo hi >foo ; ls -l foo
umask 022 ; rm -f foo ; echo hi >foo ; ls -l foo
umask 033 ; rm -f foo ; echo hi >foo ; ls -l foo
echo hi >foo ; chmod 277 foo ; ls -l foo ; cat foo
http://www.data.gc.ca/default.asp?lang=En&n=B20B4A63-1 The Government of Canada is pleased to announce that the next generation Open Data Portal will be using the Open Government Platform. The Open Government Platform (OGPL) is the result of a collaborative initiative between India and the United States designed to promote transparency and greater citizen engagement by releasing government data to the public through a freely available, open source platform. By making data available in useful machine-readable formats, the OGPL will allow developers, analysts, media, and academia to develop new applications and insights based on public sector data. By using an open source platform, an international OGPL community will provide future technology enhancements, open government solutions, and community-based technical support.
Simba kupata wewe. - “Lion Get You”
The ISO 9000 Fun Standard: http://funstandard.org/