Dydaktyka:
Feedback
user@host ~ $ ls b t x user@host ~ $ cat b 99 little bugs in the code. 99 little bugs in the code. Take one down, patch it around, 127 little bug in the code... (common proverb) user@host ~ $ cat t Does a good farmer neglect a crop he has planted? Does a good teacher overlook even the most humble student? Does a good father allow a single child to starve? Does a good programmer refuse to maintain his code? user@host ~ $ cat b t 99 little bugs in the code. 99 little bugs in the code. Take one down, patch it around, 127 little bug in the code... (common proverb) Does a good farmer neglect a crop he has planted? Does a good teacher overlook even the most humble student? Does a good father allow a single child to starve? Does a good programmer refuse to maintain his code? user@host ~ $ paste b t 99 little bugs in the code. Does a good farmer neglect a crop he has planted? 99 little bugs in the code. Does a good teacher overlook even the most humble student? Take one down, patch it around, Does a good father allow a single child to starve? 127 little bug in the code... Does a good programmer refuse to maintain his code? (common proverb) user@host ~ $ fold -w 32 t Does a good farmer neglect a cro p he has planted? Does a good teacher overlook eve n the most humble student? Does a good father allow a singl e child to starve? Does a good programmer refuse to maintain his code? user@host ~ $ fold -sw 32 t Does a good farmer neglect a crop he has planted? Does a good teacher overlook even the most humble student? Does a good father allow a single child to starve? Does a good programmer refuse to maintain his code? user@host ~ $ column b 99 little bugs in the code. 127 little bug in the code... 99 little bugs in the code. (common proverb) Take one down, patch it around, user@host ~ $ column -x b 99 little bugs in the code. 99 little bugs in the code. Take one down, patch it around, 127 little bug in the code... (common proverb) user@host ~ $ column -t b 99 little bugs in the code. 99 little bugs in the code. Take one down, patch it around, 127 little bug in the code... (common proverb) user@host ~ $ cat x Hello wolrld! nah, been to an airport naïve rôle user@host ~ $ cat -v x Hello wolr^H^Hrld! As pretty as an airport^Mnah, been to naM-CM-/ve rM-CM-4le user@host ~ $ hexdump -C x 00000000 48 65 6c 6c 6f 20 77 6f 6c 72 08 08 72 6c 64 21 |Hello wolr..rld!| 00000010 0a 41 73 20 70 72 65 74 74 79 20 61 73 20 61 6e |.As pretty as an| 00000020 20 61 69 72 70 6f 72 74 0d 6e 61 68 2c 20 62 65 | airport.nah, be| 00000030 65 6e 20 74 6f 20 0a 6e 61 c3 af 76 65 20 72 c3 |en to .na..ve r.| 00000040 b4 6c 65 0a |.le.| 00000044 user@host ~ $ cat bbc_big_read.txt 1|The Lord of the Rings|J. R. R. Tolkien 2|Pride and Prejudice|Jane Austen 3|His Dark Materials|Philip Pullman 4|The Hitchhiker's Guide to the Galaxy|Douglas Adams 5|Harry Potter and the Goblet of Fire|J. K. Rowling 6|To Kill a Mockingbird|Harper Lee 7|Winnie-the-Pooh|A. A. Milne 8|Nineteen Eighty-Four|George Orwell 9|The Lion, the Witch and the Wardrobe|C. S. Lewis 10|Jane Eyre|Charlotte Brontë user@host ~ $ cat goodreads.txt 1|To Kill a Mockingbird|Harper Lee 2|Harry Potter and the Sorcerer’s Stone|J.K. Rowling 3|The Great Gatsby|F. Scott Fitzgerald 4|Nineteen Eighty-Four|George Orwell 5|Animal Farm|George Orwell 6|The Hobbit, or There and Back Again|J.R.R. Tolkien 7|The Little Prince|Antoine de Saint-Exupéry 8|Fahrenheit 451|Ray Bradbury 9|The Catcher in the Rye|J.D. Salinger 10|The Lion, the Witch and the Wardrobe|C.S. Lewis user@host ~ $ sort -t '|' -k 2 goodreads.txt > goodreads.sorted.txt user@host ~ $ sort -t '|' -k 2 bbc_big_read.txt > bbc_big_read.sorted.txt user@host ~ $ join -t '|' -j 2 bbc_big_read.sorted.txt goodreads.sorted.txt Nineteen Eighty-Four|8|George Orwell|4|George Orwell The Lion, the Witch and the Wardrobe|9|C. S. Lewis|10|C.S. Lewis To Kill a Mockingbird|6|Harper Lee|1|Harper Lee user@host ~ $ join -t '|' -j 2 bbc_big_read.sorted.txt goodreads.sorted.txt | column -t -s '|' Nineteen Eighty-Four 8 George Orwell 4 George Orwell The Lion, the Witch and the Wardrobe 9 C. S. Lewis 10 C.S. Lewis To Kill a Mockingbird 6 Harper Lee 1 Harper Lee