|
|
1.1 ! root 1: #print ! 2: Often you want to refer to the last line ! 3: of a file, and you don't know how long it is. ! 4: There is a special address, "$" for this purpose. ! 5: "$" refers to the end of a file. Thus ! 6: $p ! 7: prints the last line of a file and ! 8: 1,$p ! 9: prints all of a file. ! 10: Here's another file. Print all of it, and ! 11: then type the usual w, q, and ready. ! 12: Your commands should look like ! 13: 1,$p ! 14: w ! 15: q ! 16: ready ! 17: #create Ref ! 18: 1,$p ! 19: w ! 20: q ! 21: #create file ! 22: New York Mets Managers ! 23: Casey Stengel ! 24: Wes Westrum ! 25: Gil Hodges ! 26: Yogi Berra ! 27: Roy McMillan ! 28: #copyin ! 29: #pipe ! 30: ex +'set prompt noopt open' file ! 31: #user ! 32: #unpipe ! 33: #uncopyin ! 34: tail -3 .copy >X1 ! 35: #cmp X1 Ref ! 36: #log ! 37: #next ! 38: 10.1b 10 ! 39: 10.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.