C:\>help find Searches for a text string in a file or files. FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]] /V Displays all lines NOT containing the specified string. /C Displays only the count of lines containing the string. /N Displays line numbers with the displayed lines. /I Ignores the case of characters when searching for the string. /OFF[LINE] Do not skip files with offline attribute set. "string" Specifies the text string to find. [drive:][path]filename Specifies a file or files to search. If a path is not specified, FIND searches the text typed at the prompt or piped from another command. C:\> assoc | find /c "=" 880 C:\> assoc | find /I "flash" .as=Flash.ActionScriptFile .asc=Flash.ASCommunicationFile .clr=Flash.ColorTableFile .fla=Flash.Movie .flp=Flash.FlashProjectFile .flv=FlashVideo.FlashVideo .jsfl=Flash.JSCommandFile .mfp=MacromediaFlashPaper.MacromediaFlashPaper .spa=Flash.Movie .spl=ShockwaveFlash.ShockwaveFlash .swc=Flash.FlashComponentFile .swd=Flash.DebugFile .swf=ShockwaveFlash.ShockwaveFlash .swt=ShockwaveFlash.ShockwaveFlash 458 finger 459 finger | wc PIPE symbol and PIPE operation 460 man wc 461 man wc man wc = show the manual pages for wc command 462 finger | wc 463 finger | wc pipe the output of finger command to the wc command 464 finger to get the count of lines, words, and characters. 465 finger > march31st.txt redirect the OUTPUT to a file named march31st.txt 472 bc < bc.txt Redirect the INPUT to be from file named bc.txt 473 bc < bc.txt > bcOutput.txt Redirect both the INPUT and the OUTPUT 474 more bcOutput.txt Look at the output file that bc > bcOutput.txt created. 475 history 476 bc < bc.txt | wc Input from bc.txt and Output piped to wc program. bash-2.05$ cat kidsInTheCar.txt | spell | sort TWO PIPES and 3 programs (cat 1st, then spell, then sort) annd --- ----- ---- arre booy da girll bash-2.05$ cat kidsInTheCar.txt | spell | sort | wc Using 3 pipes and FOUR programs! 5 5 24
6. TIC - Tiny Imaginary Computer. <----- From quiz one study guide... You would be given the Table 7.1 TIC Operation Codes. The quiz will require you to do a problem like you did for HW and like you did as group exercise in class and like was demonstrated and traced in class. http://www.cs.uni.edu/~jacobson/23/spr11/TICgroupExercise.pdf http://www.cs.uni.edu/~jacobson/23/spr11/emailSpr11d.txt And like was done on QUIZ ONE before SPRING BREAK and reviewed in class after spring break when that page of the quiz was handed back. If you got 0 out of 8 points on the TIC portion of the quiz, you should have extensive notes that you took on the day that question was reviewed. (In an ideal world, anyway).
Quiz practice question: 12. Suppose that the subnet mask for the middleearth.com domain is: 255.255.240.0 255.255.240.0 Group all of the following IP numbers for the named computers into groups that are on the same subnet. 144.154.31.44 Merry.middleearth.com 144.154.16.2 Aragorn.middleearth.com 144.154.16.3 Gimli.middleearth.com 144.154.220.111 Frodo.middleearth.com 144.154.100.111 Bifur.middleearth.com 144.154.213.111 Bilbo.middleearth.com 144.154.125.111 Bofur.middleearth.com 144.154.223.111 Gollum.middleearth.com 144.154.111.111 Strider.middleearth.com 144.154.208.222 Gandalf.middleearth.com 144.154.16.4 Legolas.middleearth.com 144.154.17.4 Samwise.middleearth.com 144.154.19.4 Boromir.middleearth.com 144.154.244.244 Sauron.middleearth.com You can just mention the computer name when you do the grouping, and avoid writing the .middleearth.com every time.Study and Review SUBNET MASKing concepts here.