Cutting and Pasting Text Blocks in pico


Cutting and Pasting Text Blocks in pico

As you're typing along in pico, you'll probably need to cut and paste blocks of text, as shown in Figure 4.6.

Figure 4.6. Marking, cutting, and pasting text in pico can be very handy.


To Cut and Paste Text in pico:

1.

pico hairyspiders

At the shell prompt, type pico followed by the name of the file to edit.

2.

Move the cursor to the first line of the text you want to cut.

3.



Press to mark the beginning of the text you want to cut. (Note that is really it might work without , but it might not, depending on your terminal program. Try it out and see what happens.)

4.

Use the arrow keys to move the cursor to the end of the text you want to cut. Note that the text gets highlighted as you select it (Figure 4.6).

5.



This "kuts" the text.

6.

Using the arrow keys, move the cursor to where you want to insert the cut text.

7.



Use this key combination to paste the cut text into the file at the new location.

Tips

  • You can select and cut blocks of text without also pasting them back into a file. Just skip steps 6 and 7.

  • You can paste text blocks as many times as you want. After you select and cut text, just press at each place where you want to insert the cut text.

  • If you don't select text, just cuts a single line.





Unix(c) Visual Quickstart Guide
UNIX, Third Edition
ISBN: 0321442458
EAN: 2147483647
Year: 2006
Pages: 251

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net