Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. gm87@ue-ubuntu:~/cs215/vecproj$ ./editor input.dat
  2. > h
  3. This line editor can do the following commands:
  4.  
  5. I line ­ insert line in front of current line
  6. A line ­ append line to end of document
  7. R line ­ replace current line
  8. D ­ delete the current line
  9. F target ­ makes line containing target current line
  10. S n ­ set current line to nth line
  11. M n ­ move current line n places
  12. C ­ display current line to screen
  13. P ­ display entire document to screen
  14. W file ­ write document to file
  15. L file ­ load file into this editor
  16. H ­ display this list of commands
  17. Q ­ quit the editor (does not save changes)
  18. > p
  19. line 1
  20. line 2
  21. line 3
  22. > c
  23. line 1
  24. > i first line
  25. > c
  26. first line
  27. > p
  28. first line
  29. line 1
  30. line 2
  31. line 3
  32. > a last line
  33. > c
  34. last line
  35. > p
  36. first line
  37. line 1
  38. line 2
  39. line 3
  40. last line
  41. > m -2
  42. > c
  43. line 2
  44. > r middle line
  45. > p
  46. first line
  47. line 1
  48. middle line
  49. line 3
  50. last line
  51. > s 0
  52. > c
  53. first line
  54. > d
  55. > c
  56. line 1
  57. > p
  58. line 1
  59. middle line
  60. line 3
  61. last line
  62. > f mid
  63. > c
  64. middle line
  65. > l input.dat
  66. > p
  67. line 1
  68. line 2
  69. line 3
  70. > q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement