User Tools

Site Tools


user:rlott:portfolio:archive

Project: THE PUZZLE BOX

A project for CSCS1730 UNIX/Linux Fundamentals by YOUR NAME OR GROUPMEMBER NAMES during the SEMESTER YEAR.

This project was begun on DATE and is anticipated to take X AMOUNT OF TIME. (Upon completion you can correct this with the actual length).

Objectives

To demonstrate understanding of tools through application of skills, observation, and the ability to reference necessary documentation.

Prerequisites

In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:

  • know how to use the command-line
  • familiarity with using command-line arguments to alter default behaviors of commands
  • know how to bring up and read a manual page
  • familiarity with other resources that provide documentation or usage information

Background

State the idea or purpose of the project. What are you attempting to pursue?

Upon approval, you'll want to fill this section out with more detailed background information. DO NOT JUST PROVIDE A LINK.

Providing any links to original source material, such as from a project page, is a good idea.

You'll want to give a general overview of what is going to be accomplished (for example, if your project is about installing a web server, do a little write-up on web servers. What is it, why do we need one, how does it work, etc.)

Scope

To apply skills learned in unraveling the puzzle that isn't as it may seem.

Located in /var/public/unix/puzzlebox/ is a filed called courses.html … have at it.

Attributes

State and justify the attributes you'd like to receive upon successful approval and completion of this project.

  • commands: utilization of commands to accomplish the task
  • files & directories: recognize what is being dealt with and act appropriately
  • text processing: retrieve/manipulate text
  • the UNIX shell: perform necessary command-line manipulations to accomplish the task at hand

Procedure

394  cat tmp | sed "s/^^//g" tmp > tmp2
  395  cat tmp
  396  dos 2 unix tmp
  397  dos2unix tmp
  398  cat tmp | sed "s/$^//g" tmp > tmp2
  399  cat tmp2
  400  cat tmp | sed "s/$//g" tmp > tmp2
  401  cat tmp2
  402  cat tmp | sed "s/$//g" tmp > tmp2
  403  cat tmp | sed "s/,//g" tmp > tmp2
  404  cat tmp2
  405  cat tmp | sed -r  "s/$^//g" tmp > tmp2
  406  cat tmp2
  407  cat tmp | sed -r  "s/^//g" tmp > tmp2
  408  cat tmp2
  409  cat tmp | sed -r  "s/^//d" tmp > tmp2
  410  cat tmp | sed -r  "s/\^//d" tmp > tmp2
  411  cat tmp | sed -e  "s/\^//d" tmp > tmp2
  412  cat tmp | sed  "s/\^//d" tmp > tmp2
  413  cat tmp | sed  "s///d" tmp > tmp2
  414  cat tmp | sed  "/^//d" tmp > tmp2
  415  cat tmp | sed  "^//d" tmp > tmp2
  416  cat tmp | sed -e  "^//d" tmp > tmp2
  417  cat tmp | sed -e  "/s^//d" tmp > tmp2
  418  cat tmp | sed -e  "s/^//d" tmp > tmp2
  419  cat tmp | sed  "s/^//d" tmp > tmp2
  420  cat tmp | sed  "s/^//" tmp > tmp2
  421  cat tmp
  422  cat tmp2
  423  vi logout
  424  vi tmp2
  425  perl -pi -e 's/\x5e//g' tmp2
  426  cat tmp2
  427  rev tmp2
  428  cat tmp | sed  "s/,//g" tmp > tmp2
  429  cat tmp2
  430  perl -pi -e 's/\x5e//g' tmp2
  431  cat tmp2
  432  rev tmp2
  433  cat tmp
  434  perl -pi -e 's/\x5e//g' tmp
  435  rev tmp
  436  sed 's/,/[]/g' tmp
  437  sed -e '/,//d' tmp
  438  sed -e ',//d' tmp
  439  sed  '/,//d' tmp
  440  sed  '/,//' tmp
  441  sed  '/,//d' tmp
  442  sed  '/,//d' tmp > tmp2
  443  sed  's/,//' tmp > tmp2
  444  cat tmp2
  445  vi tmp
  446  perl -pi -e 's/\x2c//g' tmp
  447  cat tmp2
  448  cat tmp
  449  vi
  450  perl -pi -e 's/\x2c/nul /g' tmp
  451  cat tmp
  452  cat tmpcat tmp
  453  cat tmpcat tmp2
  454  cp tmp -t ~/
  455  ls
  456  sed -e 's/\'//g' tmp2| awk -F, '.....'
  457  sed -e 's/\'//g' tmp2 | awk -F, '.....'
  458  sed  's/\'//g' tmp2 | awk -F, '.....'
  459  man awk
  460  sed -e 's/,/ /g, tmp2
  461  sed  's/,/ /g, tmp2
  462  sed -e 's/,/ /g, tmp2
  463  sed  's/,/ /g, tmp2
  464  sed  's/\'//g' tmp2 | awk -F, '.....'
  465  sed 's/,//g'
  466  sed  's/\'//g' tmp2 | awk -F, '.....'cat tmp
  467  cat tmp
  468  cat tmp2
lab46:~/the answer.txt$ cat tmp

 !xobelzzupehttuoderugifev'uoY!snoitalutargnoC

ruoyotelifsihtliam-esiwonodotevahuoyllA
hsinifesruocfodna(tnuocca64bals'rotcurtsni
.)oiloftropruoynotcejorpruoypugnitirw
otdesuuoysnoitatnacnidnasdnammoccificepsehtnotropeR:oslA
.mrofelbadaeryllufniegassemsihtniatbo

rev(1)%is%a%nifty%command.
lab46:~/the answer.txt$ rev tmp

 Congratulations!You'vefiguredoutthepuzzlebox!

Allyouhavetodonowise-mailthisfiletoyour
instructor'slab46account(andofcoursefinish
writingupyourprojectonyourportfolio).
Also:Reportonthespecificcommandsandincantationsyouusedto
obtainthismessageinfullyreadableform.

.dnammoc%ytfin%a%si%)1(ver
lab46:~/the answer.txt$

Reflection

The pocedure was easy, hard and fun.

References

user/rlott/portfolio/archive.txt · Last modified: 2011/11/01 02:21 by rlott