lecture 10 week 3

lecture 10 week 3 - Unix C GNU HTML Perl Python Teacher's...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon
Unix C + GNU HTML Perl Python Teacher's Notes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python Comp-206 : Introduction to Software Systems Week 3 Joseph Vybihal Computer Science McGill University
Background image of page 2
Unix C + GNU HTML Perl Python Announcements
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python Part 1 The Vi Editor
Background image of page 4
Unix C + GNU HTML Perl Python COMP 206 - Joseph Editor Command line text editors allow you to create/edit files at the command line. Several text editors are available. vi is one of the original text editor available on Unix. It's very difficult to use and learn. However, its very powerful and available on every Unix machines. pico is a simple text editor based on the pine mail client. It's very easy to use, and is available on most Unix machines. emacs is a very popular and powerful. Considering the number of features it has, it should be considered a heavy weight client. You can also use graphical text editors, such as vim, bluefish, gedit or jedit. As a long term investment, I highly suggest you learn vi .
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python COMP 206 - Joseph Example of Text Editors Text based, console Vi Emacs Pico Ed JStar / Jove Edit (dos) Graphic based, GUI Xemacs Bluefish and vim Gedit (Gnome) Kate (KDE) Jedit (java) Notepad (windows)
Background image of page 6
Unix C + GNU HTML Perl Python WhyVi? Most installed command-line editor Next comes Emacs We don't need to learn about windowed text editors. .. they are all the same Most installed on limitted resourced real-time systems Concern is low memory usage ssh/putty connection
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python Vi Modes Edit Mode You can input and edit your text file Command Mode Issue editor commands like File/Open, File/Save, Search and Replace, . .. Escape Mode Takes you out of the other two modes Gives you immediate commands: delete line, next page, . ..
Background image of page 8
Unix C + GNU HTML Perl Python Vi Modes Command Mode Press the : key Assumes you are in escape mode Edit Mode Many keys get you into this mode: i, a, o, O Assumes you are in escape mode Escape Mode Press the ESC key Returns you to Escape mode
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python A sample Vi session. ..
Background image of page 10
Unix C + GNU HTML Perl Python COMP 206 - Joseph
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python COMP 206 - Joseph
Background image of page 12
Unix C + GNU HTML Perl Python Part 2 Regular Expressions and commands that use it
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Unix C + GNU HTML Perl Python COMP 206 - Joseph Regular Expressions Several Unix commands and editors allow you to search on text patterns. These text patterns are known as regular expressions (regex).
Background image of page 14
Unix C + GNU HTML Perl Python COMP 206 - Joseph grep, sed and awk grep [options] string files search for occurrences of the string. sed [options] files
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 01/30/2011.

Page1 / 75

lecture 10 week 3 - Unix C GNU HTML Perl Python Teacher's...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online