Script started on Fri 22 Jan 2016 11:05:06 AM EST
ppannuto@C4CS-W16-patbook:~
$ $ # CREATE THIS FILE:
ppannuto@C4CS-W16-patbook:~
$ cat mathh lec3/math.c 
#include <stdio.h>

int main() {
	printf("2+2=%d\n", 4);
        printf("That's not how math works!\n");
}
ppannuto@C4CS-W16-patbook:~
$ $ pannuto@C4CS-W16-patbook:~
$ vi lec3/math.c 
th.c" 6L, 107C  1 #include <stdio.h>
  2 
  3 int main() {
  4 "2+2=%d\n", 4);
  5 "That's not how math works!\n");
  6 }
~                                                                                       ath.c (~/lec3) - VIMath.c{{~                                                                                       ath.c + (~/lec3) - VIMath.cath.c" 5L, 59C written
ppannuto@C4CS-W16-patbook:~
$ pannuto@C4CS-W16-patbook:~
$ cat lec3/math.c
#include <stdio.h>

int main() {
	printf("2+2=%d\n", 4);
}
ppannuto@C4CS-W16-patbook:~
$ # CREATE THIS FILE ON YOUR MACHINE^C
ppannuto@C4CS-W16-patbook:~
$ vi hiellello.c\ 
 1 
~                                                                                       -- INSERT --(){}74H418H1H17H71H1,1317H71H1H:ppannuto@C4CS-W16-patbook: ~
ppannuto@C4CS-W16-patbook:~
$ gcc hello.c\  


compilation terminated.
ppannuto@C4CS-W16-patbook:~
$ rm hello.c\  
ppannuto@C4CS-W16-patbook:~
$ pannuto@C4CS-W16-patbook:~
$ cd lec3/
ppannuto@C4CS-W16-patbook:~/lec3
$ hexedit a.out 
=00000000   7F 45 4C 46  02 01 01 00  00 00 00 00  00 00 00 00  .ELF............
00000010   02 00 3E 00  01 00 00 00  40 04 40 00  00 00 00 00  ..>.....@.@.....
00000020   40 00 00 00  00 00 00 00  F0 19 00 00  00 00 00 00  @...............
00000030   00 00 00 00  40 00 38 00  09 00 40 00  1E 00 1B 00  ....@.8...@.....
00000040   06 00 00 00  05 00 00 00  40 00 00 00  00 00 00 00  ........@.......
00000050   40 00 40 00  00 00 00 00  40 00 40 00  00 00 00 00  @.@.....@.@.....
00000060   F8 01 00 00  00 00 00 00  F8 01 00 00  00 00 00 00  ................
00000070   08 00 00 00  00 00 00 00  03 00 00 00  04 00 00 00  ................
00000080   38 02 00 00  00 00 00 00  38 02 40 00  00 00 00 00  8.......8.@.....
00000090   38 02 40 00  00 00 00 00  1C 00 00 00  00 00 00 00  8.@.............
000000A0   1C 00 00 00  00 00 00 00  01 00 00 00  00 00 00 00  ................
000000B0   01 00 00 00  05 00 00 00  00 00 00 00  00 00 00 00  ................
000000C0   00 00 40 00  00 00 00 00  00 00 40 00  00 00 00 00  ..@.......@.....
000000D0   14 07 00 00  00 00 00 00  14 07 00 00  00 00 00 00  ................
000000E0   00 00 20 00  00 00 00 00  01 00 00 00  06 00 00 00  .. .............
000000F0   10 0E 00 00  00 00 00 00  10 0E 60 00  00 00 00 00  ..........`.....
---  a.out12H32H:

39Hsearching...32H(press any key to cancel)
[6G450   C7 C0 D0 05  40 00 48 C7  C1 60 05 4[54G48 C7 C7  ....@.H..`.@.H
64H6.@[74Gf..D
[6G470   B8 47 10 60  00 55 48 2D  40 10 6[51G48 83 F8 0E  .G.`.UH-@.`.H
38H00 00 48 85  C0 74 11 5D  H..v......H..t.]
64H.@.`...f...
000004A0   5D C3 0F 1F  40 00 66 2E  0F 1F 84 00  00 00 00 00  ]...@.f.........
000004B0   BE 40 10 60  00 55 48 81  EE 40 10 60  00 48 C1 FE  .@.`.UH..@.`.H..
000004C0   03 48 89 E5  48 89 F0 48  C1 E8 3F 48  01 C6 48 D1  .H..H..H..?H..H.
000004D0   FE 74 15 B8  00 00 00 00  48 85 C0 74  0B 5D BF 40  .t......H..t.].@
65H`[72G].f..D
[6G4F0   80 3D 49 0B  20[34G75  11 55 48 89  E5 E8 6E FF  .=I. ..u.UH...n
66H]..6. ......@
[6G510   BF 20 0E 6[28G48 83 3F  00 75 05 EB  93 0F 1F[65G .`.H.?.u
28H48 85 C0  74 F1 55 48  89 E5 FF D0  .....H..t.UH
0575H.
**24HC51H29Hanges (Yes/No/Cancel) ?

$ es
2+2=5
ppannuto@C4CS-W16-patbook:~/lec3
$ vi math.c 
th.c" 5L, 59C  1 #include <stdio.h>
  2 
  3 int main() {
  4 "2+2=%d\n", 4);
  5 }
~                                                                                       ath.c (~/lec3) - VIMath.c-- INSERT --  6 }ath.c + (~/lec3) - VIMath.c"That's not how math foworks\n"((45ath.c" 6L, 99C written
ppannuto@C4CS-W16-patbook:~/lec3
$ pannuto@C4CS-W16-patbook:~/lec3
$ cat math.c 
#include <stdio.h>

int main() {
	printf("2+2=%d\n", 5);
	printf("That's not how math works\n");
}
ppannuto@C4CS-W16-patbook:~/lec3
$ $ ed math.c 
99
,p
#include <stdio.h>

int main() {
	printf("2+2=%d\n", 5);
	printf("That's not how math works\n");
}
.
}
.
}
ppannuto@C4CS-W16-patbook:~/lec3
$ cat math.c
#include <stdio.h>

int main() {
	printf("2+2=%d\n", 5);
	printf("That's not how math works\n");
}
pannuto@C4CS-W16-patbook:~/lec3
$ ed math.c
ppannuto@C4CS-W16-patbook:~/lec3
$ # ,p
ppannuto@C4CS-W16-patbook:~/lec3
$ 3## .
ppannuto@C4CS-W16-patbook:~/lec3
$ $ pannuto@C4CS-W16-patbook:~/lec3
$ exit

Script done on Fri 22 Jan 2016 02:12:22 PM EST