Skip to content

Instantly share code, notes, and snippets.

@hwhelchel
Created December 16, 2013 04:25
Show Gist options
  • Save hwhelchel/7982309 to your computer and use it in GitHub Desktop.
Save hwhelchel/7982309 to your computer and use it in GitHub Desktop.
Week 6 Command Line Obstacle Course.
501 cd Documents/School/Dev\ Bootcamp/Phase 0
502 cd Documents/School/Dev\ Bootcamp/Phase\ 0/
503 mkdir cli-repo
504 ls
505 cd cli-repo
506 git clone https://github.com/harryw377/CLI-Obstacle-Course
507 ls
508 cd CLI-Obstacle-Course/
509 ls
510 ls -a
511 l -a
512 ls -la
513 ls
514 mv images /app/assets
515 mv images app/assets
516 cd app/assets
517 ls
518 cd ..
519 cd ..
520 cd app/assets/images
521 ls -a
522 cd ..
523 cd ..
524 ls
525 cd assets/images
526 cd ../../views/static_pages/
527 ls
528 ls ../
529 ls ../../
530 mv this_is_the_annoying_ping_pong_text\!.txt ../
531 cd ..
532 ls
533 cd static_pages/
534 cd ..
535 ls
536 cd static_pages/
537 mv this_is_the_annoying_ping_pong_text\!.txt
538 mv this_is_the_annoying_ping_pong_text\!.txt static_pages
539 mv this_is_the_annoying_ping_pong_text\!.txt static_pages
540 mv this_is_the_annoying_ping_pong_text\!.txt /static_pages
541 mv this_is_the_annoying_ping_pong_text\!.txt static_pages/
542 mv ../this_is_the_annoying_ping_pong_text\!.txt .
543 ls
544 mv this_is_the_annoying_ping_pong_text\!.txt where_am_you?.txt
545 mv where_am_you\?.txt where_am_i?.txt
546 ls
547 pwd
548 pwd > where_am_i\?.txt
549 more where_am_i\?.txt
550 cd ~
551 pwd
552 mv find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ "static_pages_controller.rb" ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/
553 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ "static_pages_controller.rb"
554 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ "/static_pages_controller.rb"
555 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb"
556 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb" | mv Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/
557 mv <(find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb") Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/
558 mv <(find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb") Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/static_pages_controller.rb
559 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb"
560 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name -exec mv {} "static_pages_controller.rb" Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/static_pages_controller.rb
561 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name -exec mv "static_pages_controller.rb" Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/app/controllers/static_pages_controller.rb;
562 find ./Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course/ -name "static_pages_controller.rb"
563 mv Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course
564 cd Documents/School/Dev\ Bootcamp/Phase\ 0/cli-repo/CLI-Obstacle-Course
565 ls
566 cd //app
567 ls -a
568 cd app
569 ls
570 cd helpers/
571 ls
572 mv static_pages_controller.rb ../controllers/
573 cd ../../..
574 cd CLI-Obstacle-Course/
575 find . -name "controller"
576 find . -name "*controller*"
577 grep "bootinator*"
578 grep -l "bootinator*" .
579 grep -l "bootinator*" /.
580 grep -l "bootinator*"
581 mdfind -onlyin . "*bootinator*"
582 mdfind -onlyin . "*bootinator"
583 mdfind -onlyin . bootinator
584 mdfind -onlyin . "def bootinator"
585 mv app/assets/stylesheets/application_helper.rb app/helpers/
586 cd app/helpers/
587 ls
588 cd ..
589 cd ..
590 ls
591 rm -Rf delete_me/
592 ls
593 find -name "*winning.rb"
594 find . -name "*winning.rb"
595 cp config/environments/you_are_winning.rb ~/Desktop/
596 cd ~/Desktop/
597 ruby you_are_winning.rb
598 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment