This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ed_survival [2020/03/11 17:30] smj created |
ed_survival [2020/03/11 17:31] (current) smj |
||
---|---|---|---|
Line 10: | Line 10: | ||
||a||append text to the buffer|| | ||a||append text to the buffer|| | ||
||i||insert text at the current line in the buffer|| | ||i||insert text at the current line in the buffer|| | ||
- | ||p||print the current line in the buffer | + | ||p||print the current line - try //1p// to print the first line|| |
||q||quit ed - to quit without saving, type //q!//|| | ||q||quit ed - to quit without saving, type //q!//|| | ||
||s||search/ | ||s||search/ | ||
||w||write out the buffer to disk - //w filename// | ||w||write out the buffer to disk - //w filename// | ||
+ | ||.||return to command mode from //a//ppend or //i//nput mode|| | ||
If you have made an error, ed will only respond with //?// | If you have made an error, ed will only respond with //?// |