|
|
1.1 ! root 1: #print ! 2: Sometimes you want to recognize a string of characters ! 3: only if they appear at the beginning of the line. ! 4: The character '^' is used for this purpose. The ! 5: command ! 6: s/^ab/xy/ ! 7: will change "ab" to "xy" only if "ab" begins the line. ! 8: Try the following and watch what it does. ! 9: ! 10: ex file ! 11: 1,2p ! 12: 1,2s/^ab/xy/ ! 13: wq ! 14: ready ! 15: #create Ref ! 16: xycd ! 17: abcd ! 18: #create file ! 19: abcd ! 20: abcd ! 21: #user ! 22: #cmp file Ref ! 23: #log ! 24: #next ! 25: 38.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.