Kyle Pryslopski's fall 2012 Opus
In this space you can provide a description of yourself, your pursuits, your interests. To fill out this section, click the edit button off to the right, delete this placement text, and type your original content.
Today we finished going over the starting info. Same old Matt no matter what we are doing we end up going off on a tangent about something, today was a quote “Any Technology, suficcient, advanced, is indistinguishable from MAGIC!” -Isaac Asimov- so that was the first of many. Just saying the opus is not my favorite part of this class but it might be better then before. My choosen keyword is 'drum roll' file copying/moving/renaming so lets see what we come up with by Sept 15. Weird chats going on in the class chat. Made a new dir in lab46 for this class called unix. Went through old programs so I could get a refresher course on c/c++.
Today before class I printed of a list of commands for vi so that I can practice at home. Finished my keyword(s) so that it is out of the way. We just made vi different but it must be in a good way, I still prefer nano over vi but I give vi a college try. Its magic time. Made a file then said hello. STDIN, STDOUT, STDERR now words and basic to under stand. Learning file stuff. How can I work when eyes pop up on my screen. Mathmatical.
Lost my phone so it made me late for class now Im lost at whats happening. So heres project 1's stuff. 1B is ASCII text. 1C is “This is a simple text file. It contains ASCII text.”. 1D is “file.txt.gz: gzip compressed data, was “file.txt”, from Unix, last modified: Wed Sep 26 16:00:08 2012”. 1E is “file.txt.gz: gzip compressed data, was “file.txt”, from Unix, last modified: Wed Sep 26 16:00:08 2012, max speed”. 2B looks like this “ lab46:~$ cat courses.html !\Àâ ¶¡¹¡±¹1¡¡¡©,Ê@iqIbCyjJz*u9EM
Ãx3³pYq¦È2ü 2 %©
yÅå©Ez%%ú¡!
ÌO{b2ÃæûVp30²üaf``yÁ 1H¨ÁhPÈÆdFk@,iPqbNj±^JØÀÉ@AÍÀÜXofC³ýfq½rþ£ÄQg+ÂÂôÈá]Þúνjî^oý¿{öç_K'¨Z[o6¶ZQæk'Ý{4âƵîS\ÄÖÞVÖ~ÜݵucÀ®®zûÔEëßØPk±å¼Dw¦ÎË?ÕJ
ÑÊ):n_¬[uÕgsÑ{½npÎÑØ°ó¬²SDÒÕÕüþ½YNîa¤>ýæøm5µÂ=y×-{Ýe}Ûï>úè%£v¶×f_¾oÿfí<Þa¿·õvßKßoÝs:¼]6?îäëä·6P»uoÿIÛÜ©iÉé<Ç¿XÈÏý£Ó/ó¹ñpHÒÇ)S?ÿt]3Óõ~ø¼MfW¯E>4ÎkÑÙ}©F=0äqÅ¥%Àð,³¬ÅU¡¸âb(É°¤ÑÓPD,³BbÃpV6L@¸ Hbd£`Q0 FÁ(£`Q0 FÁ(£`Q0 FÁ(£`Q0 FÁ(£``?(lab46:~$ 1;2c1;2c1;2c1;2c1;2c”. Lost on the last part of project 1.
Finished project 1, darn you Matt for making it so confusing. Yay everything is done for the opus and the first two projects. Chmod hates me just plain out hates me. So I figured out why I was failing so bad it was because I forgot to type .sh at the end of the file name. So I give up I will just listen to Matt.
file copying/moving/renaming
File copying- When you of make a copy of a file or folder using the command cp. File moving- When you move a folder or file to a different location using the mv command. File renaming- When you rename a file or folder also uses the mv command.
File Archival
File archival, sometimes referred to as concatenating files, is used to join multiple files and data regarding those files into a single file which can then be compressed to reduce the amount of required storage space needed for files. Each computer platform or operating system has their own formats for concatenating files. Tar, ar, and shar are the file formats used by Unix operating system to join the files and gzip is the format of the compressed file. Each format is distinct in the treatment of the files. For example, the tar format is used for the creation of tape archives, and has replaced the ar format for most files other than static libraries. The shar format is for shell script archives.
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
lab46:~$ tar cvf kyle.tar src/ src/ src/.hg/ src/.hg/store/ src/.hg/00changelog.i src/.hg/requires src/.hg/hgrc src/.hg/branch src/.hg/dirstate src/Makefile src/cprog/ src/cprog/.svn/ src/cprog/.svn/text-base/ src/cprog/.svn/text-base/hello.svn-base src/cprog/.svn/text-base/hello.c.svn-base src/cprog/.svn/text-base/var1.c.svn-base src/cprog/.svn/text-base/val0.c.svn-base src/cprog/.svn/text-base/something.c.svn-base src/cprog/.svn/text-base/somethingelse.c.svn-base src/cprog/.svn/text-base/somethingelseelse.c.svn-base src/cprog/.svn/text-base/test.c.svn-base src/cprog/.svn/text-base/practice.c.svn-base src/cprog/.svn/text-base/blah.c.svn-base src/cprog/.svn/text-base/nano.c.svn-base src/cprog/.svn/text-base/average.c.svn-base src/cprog/.svn/text-base/slope.c.svn-base src/cprog/.svn/text-base/random.c.svn-base src/cprog/.svn/text-base/if.c.svn-base src/cprog/.svn/text-base/task3.c.svn-base src/cprog/.svn/text-base/green.c.svn-base src/cprog/.svn/text-base/yellow.c.svn-base src/cprog/.svn/text-base/weird.c.svn-base src/cprog/.svn/text-base/game.c.svn-base src/cprog/.svn/text-base/la.c.svn-base src/cprog/.svn/text-base/math.c.svn-base src/cprog/.svn/text-base/bored.c.svn-base src/cprog/.svn/text-base/whatever.c.svn-base src/cprog/.svn/text-base/average2.c.svn-base src/cprog/.svn/text-base/display.c.svn-base src/cprog/.svn/text-base/main.c.svn-base src/cprog/.svn/text-base/settings.h.svn-base src/cprog/.svn/text-base/sum.c.svn-base src/cprog/.svn/text-base/hatetask5.c.svn-base src/cprog/.svn/text-base/ki.c.svn-base src/cprog/.svn/text-base/o.c.svn-base src/cprog/.svn/text-base/fun.c.svn-base src/cprog/.svn/text-base/game2.c.svn-base src/cprog/.svn/text-base/displayops.c.svn-base src/cprog/.svn/text-base/displayops.o.svn-base src/cprog/.svn/text-base/game.h.svn-base src/cprog/.svn/text-base/main.o.svn-base src/cprog/.svn/text-base/main2.c.svn-base src/cprog/.svn/text-base/main2.o.svn-base src/cprog/.svn/text-base/process.c.svn-base src/cprog/.svn/text-base/process.o.svn-base src/cprog/.svn/text-base/analysis.c.svn-base src/cprog/.svn/text-base/debug.c.svn-base src/cprog/.svn/text-base/do.c.svn-base src/cprog/.svn/text-base/ifelse.c.svn-base src/cprog/.svn/text-base/pbv.c.svn-base src/cprog/.svn/text-base/array.c.svn-base src/cprog/.svn/text-base/pbr.c.svn-base src/cprog/.svn/prop-base/ src/cprog/.svn/prop-base/hello.svn-base src/cprog/.svn/prop-base/displayops.o.svn-base src/cprog/.svn/prop-base/main.o.svn-base src/cprog/.svn/prop-base/main2.o.svn-base src/cprog/.svn/prop-base/process.o.svn-base src/cprog/.svn/props/ src/cprog/.svn/tmp/ src/cprog/.svn/tmp/text-base/ src/cprog/.svn/tmp/prop-base/ src/cprog/.svn/tmp/props/ src/cprog/.svn/entries src/cprog/.svn/all-wcprops src/cprog/tryme src/cprog/debug src/cprog/temp src/cprog/zero src/cprog/hello.c src/cprog/string3b.c src/cprog/var1.c src/cprog/val0.c src/cprog/val0 src/cprog/something.c src/cprog/something src/cprog/somethingelse.c src/cprog/somethingelse src/cprog/somethingelseelse.c src/cprog/somethingelseelse src/cprog/test.c src/cprog/dtom src/cprog/practice.c src/cprog/string5.c src/cprog/blah.c src/cprog/blah src/cprog/string4.c src/cprog/pie.c src/cprog/pie src/cprog/task7/ src/cprog/task7/disk.cc src/cprog/task7/storage.h src/cprog/task7/tape.h src/cprog/task7/storage.cc src/cprog/task7/disk.h src/cprog/task7/disk.h.gch src/cprog/task7/storage.h.gch src/cprog/task7/disk.o src/cprog/task7/tape.cc src/cprog/task7/main.cc src/cprog/task7/task7/ src/cprog/task7/task7/main.cc src/cprog/task7/task7/storage.h src/cprog/task7/task7/Makefile src/cprog/task7/task7/tape.h src/cprog/task7/task7/storage.cc src/cprog/task7/task7/disk.h src/cprog/task7/task7/storage.o src/cprog/task7/task7/main.o src/cprog/task7/task7/disk.o src/cprog/task7/tape.h.gch src/cprog/task7/storage.o src/cprog/task7/Makefile src/cprog/task7/tape.o src/cprog/task7/main.o src/cprog/task7/mydata src/cprog/task7/main src/cprog/analysis.c src/cprog/string4 src/cprog/test src/cprog/practice src/cprog/nano.c src/cprog/nano src/cprog/average.c src/cprog/average src/cprog/slope.c src/cprog/slope src/cprog/random.c src/cprog/random src/cprog/if.c src/cprog/if src/cprog/task3.c src/cprog/task3 src/cprog/green.c src/cprog/green src/cprog/yellow.c src/cprog/yellow src/cprog/weird.c src/cprog/weird src/cprog/game.c src/cprog/what src/cprog/la.c src/cprog/la src/cprog/tree src/cprog/math.c src/cprog/math src/cprog/math2 src/cprog/bored.c src/cprog/bored src/cprog/whatever.c src/cprog/whatever src/cprog/main.c src/cprog/sum.c src/cprog/average2.c src/cprog/display.c src/cprog/settings.h src/cprog/string3b src/cprog/sum.o src/cprog/average2.o src/cprog/display.o src/cprog/whatever2 src/cprog/game2.c src/cprog/math3 src/cprog/ki.c src/cprog/ki src/cprog/fork src/cprog/o.c src/cprog/o src/cprog/hatetask5.c src/cprog/hatetask5 src/cprog/game2.c.save src/cprog/game2.c.save.1 src/cprog/image.bmp src/cprog/fun.c src/cprog/fun src/cprog/game2 src/cprog/game.h src/cprog/game.h.gch src/cprog/main2.c src/cprog/main2.o src/cprog/displayops.c src/cprog/displayops.o src/cprog/process.c src/cprog/process.o src/cprog/game src/cprog/hello.cc src/cprog/hello src/cprog/hello2.cc src/cprog/hello2 src/cprog/stacks.c src/cprog/circle.cc src/cprog/circle src/cprog/linked.c src/cprog/main.cc src/cprog/account src/cprog/rectangle3 src/cprog/testtryme src/cprog/testtryme2.cc src/cprog/testtryme2 src/cprog/doubly1 src/cprog/linked src/cprog/circle.h src/cprog/linkedA/ src/cprog/linkedA/main.c src/cprog/linkedA/append.c src/cprog/linkedA/insert.c src/cprog/linkedA/remove.c src/cprog/linkedA/projecta.c src/cprog/linkedA/projecta src/cprog/circle.o src/cprog/circle.h.gch src/cprog/temp.c src/cprog/push.c src/cprog/mycircle src/cprog/main.o src/cprog/rectangle.o src/cprog/string5 src/cprog/srandtime.c src/cprog/nocapes.c src/cprog/nocapes.o src/cprog/nocapes src/cprog/debug.c src/cprog/string3.c src/cprog/rectangle.cc src/cprog/rectangle src/cprog/rectangle.h src/cprog/Main.cc src/cprog/fun.cc src/cprog/Main.o src/cprog/fun.o src/cprog/rectangle2 src/cprog/rectangle.cc.save src/cprog/tryme.cc src/cprog/account.cc src/cprog/rectangle3.cc src/cprog/testtryme.cc src/cprog/ifelse.c src/cprog/ifelse src/cprog/do.c src/cprog/do src/cprog/pbv.c src/cprog/pbv src/cprog/pbr.c src/cprog/pbr.o src/cprog/pbr src/cprog/array.c src/cprog/array src/cprog/analysis src/cprog/pointer.c src/cprog/pointer src/cprog/back.c src/cprog/back src/cprog/string.c src/cprog/a.out src/cprog/ptop src/cprog/pointers.c src/cprog/linkedlist1.c src/cprog/linkedlist2.c src/cprog/doubly1.c src/cprog/doubly2.c src/cprog/pop.c src/cprog/someoneelse.c src/cprog/pointers src/cprog/peek.c src/cprog/pointers2.c src/cprog/doubly2 src/cprog/isEmpty.c src/cprog/pointers2 src/cprog/teststack.c src/cprog/playpoints.c src/cprog/playpoints src/cprog/teststack src/cprog/link.c src/cprog/string src/cprog/string2.c src/cprog/linkedlist1 src/cprog/zero.c src/cprog/linkedlist2 src/cprog/string2 src/cprog/string3 src/cprog/string3.c.save src/cprog/string5.c.save src/cprog/what.c src/cprog/math2.c src/cprog/signal.c src/cprog/signal src/cprog/math3.c src/cprog/tree.c src/cprog/fork.c src/cprog/Untitled 1.odt src/cprog/exponents.c src/cprog/exponents src/cprog/ceil.c src/cprog/ceil src/cprog/eoce.cc src/cprog/eoce src/cprog/bubble.c src/cprog/trying.c src/cprog/trying src/cprog/prime.c src/cprog/hey.c src/cprog/hey src/shovelingbob/ src/shovelingbob/.svn/ src/shovelingbob/.svn/text-base/ src/shovelingbob/.svn/text-base/bobspritesheet_tyler.png.svn-base src/shovelingbob/.svn/text-base/shovelingbobcoverart.jpg.svn-base src/shovelingbob/.svn/text-base/backgroundbeta.bmp.svn-base src/shovelingbob/.svn/text-base/dirtlevel1.bmp.svn-base src/shovelingbob/.svn/text-base/dirtlevel1.png.svn-base src/shovelingbob/.svn/text-base/0426-dirt.cc.svn-base src/shovelingbob/.svn/text-base/Makefile.svn-base src/shovelingbob/.svn/text-base/main.cc.svn-base src/shovelingbob/.svn/text-base/dirtlevel2.bmp.svn-base src/shovelingbob/.svn/text-base/dirtlevel3.bmp.svn-base src/shovelingbob/.svn/text-base/dirtlevel4.bmp.svn-base src/shovelingbob/.svn/text-base/sb_standing.png.svn-base src/shovelingbob/.svn/text-base/bobtest.bmp.svn-base src/shovelingbob/.svn/text-base/Enemy.xcf.svn-base src/shovelingbob/.svn/text-base/enemy.png.svn-base src/shovelingbob/.svn/text-base/Davestill.png.svn-base src/shovelingbob/.svn/text-base/bombbob.png.svn-base src/shovelingbob/.svn/text-base/dead.png.svn-base src/shovelingbob/.svn/text-base/Daveswing.png.svn-base src/shovelingbob/.svn/text-base/deadBob.png.svn-base src/shovelingbob/.svn/text-base/deadBob2.png.svn-base src/shovelingbob/.svn/prop-base/ src/shovelingbob/.svn/prop-base/bobspritesheet_tyler.png.svn-base src/shovelingbob/.svn/prop-base/shovelingbobcoverart.jpg.svn-base src/shovelingbob/.svn/prop-base/backgroundbeta.bmp.svn-base src/shovelingbob/.svn/prop-base/dirtlevel1.bmp.svn-base src/shovelingbob/.svn/prop-base/dirtlevel1.png.svn-base src/shovelingbob/.svn/prop-base/dirtlevel2.bmp.svn-base src/shovelingbob/.svn/prop-base/dirtlevel3.bmp.svn-base src/shovelingbob/.svn/prop-base/dirtlevel4.bmp.svn-base src/shovelingbob/.svn/prop-base/sb_standing.png.svn-base src/shovelingbob/.svn/prop-base/bobtest.bmp.svn-base src/shovelingbob/.svn/prop-base/Enemy.xcf.svn-base src/shovelingbob/.svn/prop-base/enemy.png.svn-base src/shovelingbob/.svn/prop-base/Davestill.png.svn-base src/shovelingbob/.svn/prop-base/bombbob.png.svn-base src/shovelingbob/.svn/prop-base/dead.png.svn-base src/shovelingbob/.svn/prop-base/Daveswing.png.svn-base src/shovelingbob/.svn/prop-base/deadBob.png.svn-base src/shovelingbob/.svn/prop-base/deadBob2.png.svn-base src/shovelingbob/.svn/props/ src/shovelingbob/.svn/tmp/ src/shovelingbob/.svn/tmp/text-base/ src/shovelingbob/.svn/tmp/prop-base/ src/shovelingbob/.svn/tmp/props/ src/shovelingbob/.svn/entries src/shovelingbob/.svn/all-wcprops src/shovelingbob/bobspritesheet_tyler.png src/shovelingbob/dirt/ src/shovelingbob/dirt/.svn/ src/shovelingbob/dirt/.svn/text-base/ src/shovelingbob/dirt/.svn/text-base/dirt.h.svn-base src/shovelingbob/dirt/.svn/text-base/dirt.cc.svn-base src/shovelingbob/dirt/.svn/prop-base/ src/shovelingbob/dirt/.svn/props/ src/shovelingbob/dirt/.svn/tmp/ src/shovelingbob/dirt/.svn/tmp/text-base/ src/shovelingbob/dirt/.svn/tmp/prop-base/ src/shovelingbob/dirt/.svn/tmp/props/ src/shovelingbob/dirt/.svn/entries src/shovelingbob/dirt/.svn/all-wcprops src/shovelingbob/dirt/dirt.h src/shovelingbob/dirt/dirt.cc src/shovelingbob/dirt/dirt.o src/shovelingbob/player/ src/shovelingbob/player/.svn/ src/shovelingbob/player/.svn/text-base/ src/shovelingbob/player/.svn/text-base/player.h.svn-base src/shovelingbob/player/.svn/text-base/player.cc.svn-base src/shovelingbob/player/.svn/prop-base/ src/shovelingbob/player/.svn/props/ src/shovelingbob/player/.svn/tmp/ src/shovelingbob/player/.svn/tmp/text-base/ src/shovelingbob/player/.svn/tmp/prop-base/ src/shovelingbob/player/.svn/tmp/props/ src/shovelingbob/player/.svn/entries src/shovelingbob/player/.svn/all-wcprops src/shovelingbob/player/player.h src/shovelingbob/player/player.cc src/shovelingbob/player/player2.cc.save src/shovelingbob/enemy/ src/shovelingbob/enemy/.svn/ src/shovelingbob/enemy/.svn/text-base/ src/shovelingbob/enemy/.svn/text-base/enemy.h.svn-base src/shovelingbob/enemy/.svn/text-base/enemy.cc.svn-base src/shovelingbob/enemy/.svn/prop-base/ src/shovelingbob/enemy/.svn/props/ src/shovelingbob/enemy/.svn/tmp/ src/shovelingbob/enemy/.svn/tmp/text-base/ src/shovelingbob/enemy/.svn/tmp/prop-base/ src/shovelingbob/enemy/.svn/tmp/props/ src/shovelingbob/enemy/.svn/entries src/shovelingbob/enemy/.svn/all-wcprops src/shovelingbob/enemy/enemy.h src/shovelingbob/enemy/enemy.cc src/shovelingbob/rocks/ src/shovelingbob/rocks/.svn/ src/shovelingbob/rocks/.svn/text-base/ src/shovelingbob/rocks/.svn/text-base/rocks.cc.svn-base src/shovelingbob/rocks/.svn/text-base/rocks.h.svn-base src/shovelingbob/rocks/.svn/prop-base/ src/shovelingbob/rocks/.svn/props/ src/shovelingbob/rocks/.svn/tmp/ src/shovelingbob/rocks/.svn/tmp/text-base/ src/shovelingbob/rocks/.svn/tmp/prop-base/ src/shovelingbob/rocks/.svn/tmp/props/ src/shovelingbob/rocks/.svn/entries src/shovelingbob/rocks/.svn/all-wcprops src/shovelingbob/rocks/rocks.cc src/shovelingbob/rocks/rocks.h src/shovelingbob/score/ src/shovelingbob/score/.svn/ src/shovelingbob/score/.svn/text-base/ src/shovelingbob/score/.svn/text-base/score.h.svn-base src/shovelingbob/score/.svn/prop-base/ src/shovelingbob/score/.svn/props/ src/shovelingbob/score/.svn/tmp/ src/shovelingbob/score/.svn/tmp/text-base/ src/shovelingbob/score/.svn/tmp/prop-base/ src/shovelingbob/score/.svn/tmp/props/ src/shovelingbob/score/.svn/entries src/shovelingbob/score/.svn/all-wcprops src/shovelingbob/score/score.h src/shovelingbob/shovelgame/ src/shovelingbob/shovelgame/.svn/ src/shovelingbob/shovelgame/.svn/text-base/ src/shovelingbob/shovelgame/.svn/text-base/main.cc.svn-base src/shovelingbob/shovelgame/.svn/text-base/fun.c.svn-base src/shovelingbob/shovelgame/.svn/text-base/main.h.svn-base src/shovelingbob/shovelgame/.svn/prop-base/ src/shovelingbob/shovelgame/.svn/props/ src/shovelingbob/shovelgame/.svn/tmp/ src/shovelingbob/shovelgame/.svn/tmp/text-base/ src/shovelingbob/shovelgame/.svn/tmp/prop-base/ src/shovelingbob/shovelgame/.svn/tmp/props/ src/shovelingbob/shovelgame/.svn/tmp/main.cc.tmp src/shovelingbob/shovelgame/.svn/tmp/main.h.tmp src/shovelingbob/shovelgame/.svn/entries src/shovelingbob/shovelgame/.svn/all-wcprops src/shovelingbob/shovelgame/main.cc src/shovelingbob/shovelgame/fun.c src/shovelingbob/shovelgame/main.h src/shovelingbob/shovelingbobcoverart.jpg src/shovelingbob/backgroundbeta.bmp src/shovelingbob/dirtlevel1.bmp src/shovelingbob/dirtlevel1.png src/shovelingbob/0426-dirt.cc src/shovelingbob/Makefile src/shovelingbob/main.cc src/shovelingbob/dirtlevel2.bmp src/shovelingbob/dirtlevel3.bmp src/shovelingbob/dirtlevel4.bmp src/shovelingbob/sb_standing.png src/shovelingbob/bobtest.bmp src/shovelingbob/Enemy.xcf src/shovelingbob/enemy.png src/shovelingbob/Davestill.png src/shovelingbob/bombbob.png src/shovelingbob/dead.png src/shovelingbob/Daveswing.png src/shovelingbob/deadBob.png src/shovelingbob/deadBob2.png src/shovelingbob/main.o src/shovelingbob/sbob src/submit/ src/submit/.svn/ src/submit/.svn/text-base/ src/submit/.svn/text-base/contact.info.svn-base src/submit/.svn/text-base/average.c.svn-base src/submit/.svn/text-base/slope.c.svn-base src/submit/.svn/text-base/task3.c.svn-base src/submit/.svn/text-base/task4.c.svn-base src/submit/.svn/text-base/task5.c.svn-base src/submit/.svn/text-base/storage.cc.svn-base src/submit/.svn/text-base/storage.h.svn-base src/submit/.svn/text-base/tape.cc.svn-base src/submit/.svn/text-base/tape.h.svn-base src/submit/.svn/text-base/task7.cc.svn-base src/submit/.svn/prop-base/ src/submit/.svn/props/ src/submit/.svn/tmp/ src/submit/.svn/tmp/text-base/ src/submit/.svn/tmp/prop-base/ src/submit/.svn/tmp/props/ src/submit/.svn/entries src/submit/.svn/all-wcprops src/submit/contact.info src/submit/average.c src/submit/slope.c src/submit/task3.c src/submit/task4.c src/submit/task5.c src/submit/task5/ src/submit/task5/game.h src/submit/task5/main.c src/submit/task5/displayops.c src/submit/task5/process.c src/submit/task5/main.o src/submit/task5/displayops.o src/submit/task5/process.o src/submit/task6.cc src/submit/rectangle.h src/submit/Main.o src/submit/fun.o src/submit/tryme.cc src/submit/task7.cc src/submit/tape.cc src/submit/storage.cc src/submit/storage.h src/submit/tape.h src/testfile src/unix/ src/unix/hello.c src/unix/hello src/unix/pie.c src/unix/pie src/unix/submit/ src/unix/submit/p00/ src/unix/submit/p00/arc.tar.gz
What would happen if for grep you gave it two or more seperate words/letters?
Nick Matt
I believe that it will look for all the words/letters.
Im going test this by checking it in a terminal.
First I did who | grep kpryslop | wc -l and got 1. then I did who | grep kpryslop byang | wc -l and got grep: byand: No such file or directory 0.
My hypothesis was wrong. grep can take two or more but after the first word/letter it looks for files and directorys.
Grep can take more than one thing but it looks for files/directorys.
lab46:~/badname/exercise$ cat one* lab46:~/badname/exercise$ cat just* lab46:~/badname/exercise$ cat compress* lab46:~/badname/exercise$ cat change\ my\\\ name.file lab46:~/badname/exercise$ cat \*\*\*\ watch\ out\!\ \*\*\* lab46:~/badname/exercise$ cat \?\?\?\ can\ you\ delete\ me\ \?\?\?.abc lab46:~/badname/exercise$ cat '#pico28903#' lab46:~/badname/exercise$ cat '$USER VALUE$' lab46:~/badname/exercise$ cat '`ls` * HI! *'
lab46:~/badname/challenge$ rm '- challenge round -' rm: invalid option -- ' ' Try `rm ./'- challenge round -'' to remove the file `- challenge round -'. Try `rm --help' for more information. lab46:~/badname/challenge$ rm ./'- challenge round -' rm: remove regular file `./- challenge round -'? y lab46:~/badname/challenge$ dir lab46:~/badname/challenge$
Thanks to Dustin Sherburne for all the help.
cat spring2013-20121026.html | grep '^<TH CLASS="ddtitle"' | sed 's/^.*crn_in=.....">//g' | sed 's/<\/A><\/TH>$//g' | sed 's/^\(.*\) - \([0-9][0-9][0-9][0-9][0-9]\) - \(.*\) - \([0-9]*\)$/ \3-\4:\2:\1/g' | sort | less
Was going to type stuff from yesterday (10/31) doing stuff for the opus but no school.
HAPPY HALLOWEEN! Finished the keyword 2. Finished experiment.
cat spring2013-20121026.html | egrep '^(<TH CLASS="ddtitle"|<TD CLASS="dddefault">)' | sed 's/^.*crn_in=.....">//g' | sed 's/<\/A><\/TH>$//g' | sed 's/^\(.*\) - \([0-9][0-9][0-9][0-9][0-9]\) - \(.*\) - \([0-9]*\)$/ \3-\4:\2:\1/g' | sed 's/^.*="dddefault">//g' | sed 's/<\/TD>$//g' | sed 's/^<ABBR title = "To Be Announced">TBA<\/ABBR>//g' | sed 's/^ //g' | sed 's/(<ABBR title= "Primary">.........//g' | sed 's/<A HREF=.*//g' | less
PATH environment variable
The $PATH variable specifies a list of one or more directory names separated by colons.
The /bin, /usr, and /local directories are typically included in most users' $PATH settings. The current directory is sometimes included, allowing programs in the current directory to be executed. Superuser (root) accounts as a rule are not include in $PATH, however, in order to prevent the accidental execution of scripts in the current directory.
When a command name is specified by the user or an exec call is made from a program, the system searches through $PATH, examining each directory from left to right in the list, looking for a filename that matches the command name. Once found, the program is executed as a child process of the command shell or program that issued the command.
quotes
A helpful tool that allows you to print characters just as you input them
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
lab46:~$ dir -l | grep "d" | wc -l 19 lab46:~$
Can you give grep to letters/words?
It will work and both letters/words.
Type it in a command line.
drwxr-xr-x 2 kpryslop lab46 62 Oct 26 15:08 Desktop drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Documents lrwxrwxrwx 1 kpryslop lab46 18 Jan 18 2011 Maildir -> /var/mail/kpryslop drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Music drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Pictures drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Public drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Templates drwxr-xr-x 2 kpryslop lab46 6 Jan 25 2011 Videos drwxr-x--x 3 kpryslop lab46 80 Sep 23 11:56 archives drwxr-x--- 5 kpryslop lab46 51 Sep 17 2010 badname -rw-r----- 1 kpryslop lab46 971 Oct 5 14:54 badname.tgz drwxr-xr-x 2 kpryslop lab46 6 Jan 27 2011 bin drwxr-xr-x 2 kpryslop lab46 42 Sep 21 16:27 closet lrwxrwxrwx 1 kpryslop lab46 28 Jan 27 2011 data -> /usr/local/etc/data/kpryslop drwxr-x--- 2 kpryslop lab46 48 Oct 24 15:06 ls\ -l drwx---r-x 5 kpryslop lab46 45 Oct 5 08:53 public_html drwx------ 7 kpryslop lab46 101 Sep 26 09:25 src drwx------ 3 kpryslop lab46 43 Aug 31 15:58 src.bak drwxr-xr-x 2 kpryslop lab46 21 Sep 21 11:51 the\ answer.txt
grep does allow for two or more letters/words.
This is useful to know how to do.
This is confusing first I get
lab46:~$ ./setup.exe I see you've made it this far. The end is in sight. cat: ./setup.exe: No such file or directory When you figure it out, you want field: 2
Then I get
lab46:~$ ./setup.exe Not ready yet.
lab46:~$ cat datafile | cut -d~ -f2 | sed 's/@/\n/g' | sort -h -r | less
Learned how to do xeyes but with different images. xloadimage.
Last day of November. EoCE today.
dd
Convert and copy a file.
unixhelp.ed.ac.uk/CGI/man-cgi?dd
Comm
“comm” is a UNIX command which can be used to compare two sorted files. The input for comm is two files, and the output is two separate columns. The command syntax for comm is
comm [OPTION]... FILE1 FILE2
comm has three main options, -1, -2, and -3.
The -1 option will print the lines present in FILE1 in the left hand column, and all common lines in the right hand column, whereas the -2 option will do the opposite (print lines present in FILE2 on the left, and common lines on the right). The -3 option, however, will only print lines unique to both files, with FILE1's unique lines being on the left, and FILE2's unique lines on the right.
lab46:~/src/unix$ comm -3 blah test #script 3 comm: file 1 is not in sorted order # echo -n "enter a number: " read number comm: file 2 is not in sorted order echo -n "How many times: " read times for((i=$number; i<$times; i**)); do let x=i*i echo "[$i] $x" done value=`$RANDOM` echo $value echo -n "Guess a value: " read num if [ $num -eq $value ]; then echo "You are correct" elif [ $num -gt $value ]; then echo "Too high" else echo "Too low" fi
Can you throw xeyes/xlogo/xloadimage on to a computer without someone logged in.
Matt
I believe you can.
Try to send xeyes or whatever to a computer not in use.
grrasp:~$ xeyes -display flake02:5 & [1] 20395 grrasp:~$ xeyes -display flake02:5 & [2] 20396 grrasp:~$ xeyes -display flake02:5 & [3] 20397 grrasp:~$ xeyes -display flake02:5 & [4] 20398 grrasp:~$ xeyes -display flake02:5 & [5] 20399 grrasp:~$ xeyes -display flake02:5 & [6] 20400 grrasp:~$ xeyes -display flake02:5 & [7] 20401 grrasp:~$ xeyes -display flake02:5 & [8] 20402 grrasp:~$ xeyes -display flake02:5 & [9] 20403 grrasp:~$ xeyes -display flake02:5 & [10] 20404 grrasp:~$ xeyes -display flake02:5 & [11] 20406 grrasp:~$ xeyes -display flake02:5 & [12] 20407 grrasp:~$
Did this while someone was not logged in at 15:32 November 30th 2012.
I was correct in my idea that xeyes/whatever would work.
This could be fun as a jock to play on people.