Week02 - ENEE 140: Introduction to Programming Concepts for...

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

View Full Document Right Arrow Icon
ENEE 140: Introduction to Programming Concepts for Engineers [email protected] © Gang Qu Spring 2010 Week 2 Basics on UNIX and C Programming Lab 3: Monday February 1 1. Reading and practice a. Read introduction, tutorial one and two at http://www.ee.surrey.ac.uk/Teaching/Unix/ b. Read the reference on vi or emacs: h t t p : / / a d m i n s c h o i c e . c o m / v i - e d i t o r - q u i c k - r e f e r e n c e http://www.cs.princeton.edu/courses/archive/spr97/cs126/help/emacs.html 2. Do the following, assuming that you are at the root directory of your GLUE account. Use vi/emacs to create a file with name week02.txt , type in the following questions and your answers in that file. This gives you a chance to play with vi/emacs. You can try to use mouse to copy and paste. a. Go to directory Week02 b. Use vi/emacs to create a new file test.txt and write your name and today’s date into it. c. Use command wc on file test.txt and explain the meaning of each number printed out on the screen. d. Copy the file hello.c you have typed in last lab from directory Week01 to Week02 e. Make a copy/backup of the file hello.c and name it hello.bak f. Modify file hello.c by replacing “Joe Doe” with your name and using today’s date. g. Use diff hello.c hello.bak to figure out the difference between files hello.c and hello.bak. Read the output and try to understand it. h.
Background image of page 1

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

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

This note was uploaded on 10/11/2010 for the course ENEE 140 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 4

Week02 - ENEE 140: Introduction to Programming Concepts for...

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

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