Lab 3 Solutions

1. :!ls :!spell :r!date :r!spell

2. If one runs a shell inside vi and changes to a different directory, the
   directory that was current with the vi session.  If you want to change 
   directories within vi or ex you may use the following command:

	:!cd mydir; echo "Hello, world!" > myfile
  
   Note that when the echo command completes, the directory which was current 
   prior to the :!cd, will again be the current directory.

3. a. :!grep chevy ~/Cars/cars or :r! grep chevy ~/Cars/cars

   b. :r!ls /etc | grep "^s"

4. vi cars
   G:!cut -d" " -f1 | sort -u

5. :w
G:r!spell %

6. {!}fmt
