Thinking in C and *nix (CSC 295/282 2014S) : Outlines

Outline 02: Some Basic Tasks and Corresponding Tools


Held: Thursday, 30 January 2014

Back to Outline 01 - Introduction. On to Outline 03 - The Bash Shell - A Refresher.

Summary

We consider a few basic *nix tools and their use in solving tasks.

Related Pages

Overview

Administrivia

GitHub

Going Over Homework

The C Memory Problem

x = malloc (...);
foo ();
bar ();
free (x);   // CRASH

Background question: How does free work?

Find all of the misspelled words in a text file

Extract the five highest grades

Extract URLs

Exercise: Remove all blank spaces at the end of lines

If you have not yet written this program in C, please do so now.

Raymond

What, if anything did you learn from reading Raymond?

A Bit About Basic Tools

Homework

  1. Learn Markdown so that we can use it for these assignments.

  2. Learn about how you set and get environment variables. Put your explanations in the directory.

    • Command line
    • Bash
    • C (get only)
  3. Update our list of "things every *nix user should know" (either in the repo

  4. Come up with two or three tasks, similar to those we did for assignment 1, and put notes about them in the tasks directory. (You can include some sample solutions in your file.)

  5. Read the first chapter of the Make book.

Copyright (c) 2013 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.