Difference between revisions of "BasicUnixUtilities"

(Tasks)
(Tasks)
Line 27: Line 27:
  
 
* grep
 
* grep
 +
** grep will print output lines that match the first argument.  If you have a file that looks like
 +
<pre>
 +
my file
 +
your file
 +
</pre>
 +
** grep my will show "my file"
 +
  
 
* |
 
* |
Line 41: Line 48:
  
 
* how to output to file
 
* how to output to file
 
  
 
==If you want to manipulate a text file:==
 
==If you want to manipulate a text file:==

Revision as of 23:56, 6 June 2007

Why are we doing this

  • To share how to do basic unix utilites.


How we know we are done

  • To sort a long list fo stuff

Definition

  • We are tring to get a list
  • how to use stuff to get information out of large lists of stuff that developers give less experiecenced developers or non developers.


People

  • Jason and Mark


Tasks

For example

  • Text file with one thing per line.
  • Opening a terminal window on your mac.
  • Look at the top of the file:
    • in the command line type head "filename" - this lets us know what the file looks like.


  • grep
    • grep will print output lines that match the first argument. If you have a file that looks like
my file
your file
    • grep my will show "my file"


  • |
  • sort
  • cat
  • ls
  • uniq
  • wc
  • how to output to file

If you want to manipulate a text file:

Print out
Sort


Retrieved from "http://aboutus.com/index.php?title=BasicUnixUtilities&oldid=7262119"