|
|
1.1 ! root 1: #print ! 2: Changing a whole line with the 'c' command is a slow way ! 3: to work when you only want to change a few letters. The 's' (substitute) ! 4: command changes the letters within a line. For example, the command ! 5: s/abc/def/ ! 6: will change a line reading ! 7: xxxabc ! 8: into one reading ! 9: xxxdef ! 10: by replacing the string 'abc' with 'def'. Try the following sequence which ! 11: alters the first line of the file 'test' within this directory: ! 12: ! 13: ex test ! 14: 1p ! 15: s/months/years/ ! 16: 1p ! 17: wq ! 18: ready ! 19: #create Ref ! 20: Four score and seven years ago our ! 21: fathers brought forth ... ! 22: #create test ! 23: Four score and seven months ago our ! 24: fathers brought forth ... ! 25: #user ! 26: #cmp test Ref ! 27: #log ! 28: #next ! 29: 30.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.