Çíàêîìñòâî ñ Linux

       

Èçìåíåíèå òåêñòà


Âû ìîæåòå çàìåíèòü ôðàãìåíòû òåêñòà, èñïîëüçóÿ êîìàíäó R. Ïîìåñòèòå êóðñîð íà ïåðâóþ áóêâó ñëîâà ``party'', íàæìèòå R è íàïå÷àòàéòå ñëîâî ``hungry''.

 ____________________________________________________________________

|Now is the time for all women to come to the aid of the hungry._   |

|~                                                                  |

|~                                                                  |

|~                                                                  |

|~                                                                  |

|~__________________________________________________________________|

Èñïîëüçîâàíèå R äëÿ ðåäàêòèðîâàíèÿ òåêñòà î÷åíü ïîõîäèò íà íà êîìàíäû i è a, íî R çàìåíÿåò ïðåæíèé òåêñò âìåñòî âñòàâêè â íåãî. Êîìàíäà r çàìåíÿåò îäèí ñèìâîë, îòìå÷åííûé êóðñîðîì. Íàïðèìåð, ïåðåìåñòèòå êóðñîð íà íà÷àëî ñëîâà ``Now'' è íàïå÷àòàéòå r, à ñëåäîì C, òî âû ïîëó÷èòå:

 ____________________________________________________________________

|Cow is the time for all women to come to the aid of the hungry._   |

|~                                                                  |

|~                                                                  |

|~                                                                  |

|~                                                                  |

|~__________________________________________________________________|

Êîìàíäà ``&tilde'' èçìåíÿåò ðàçìåð áóêâû, îòìå÷åííîé êóðñîðîì: áîëüøóþ äåëàåò ìàëåíüêîé è íàîáîðîò. Íàïðèìåð, åñëè âû ïîìåñòèòå êóðñîð íà ``o'' â ``Cow'' è çàòåì ïîñëåäîâàòåëüíî áóäåòå íàæèìàòü ~, âû â êîíå÷íîì èòîãå ïîëó÷èòå:

 ____________________________________________________________________

|COW IS THE TIME FOR ALL WOMEN TO COME TO THE AID OF THE HUNGRY.    |

|~                                                                  |

|~                                                                  |



|~                                                                  |

|~                                                                  |

|~__________________________________________________________________|

3.12.6



Ñîäåðæàíèå ðàçäåëà