editor needed?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers editor needed?
# 1  
Old 01-24-2008
editor needed?

Hi,
I need to cut/copy/paste lines from one file to another in Uxix. what is the best way to do this? Should an editor be used, or can you use a command?
Regards
Russ
# 2  
Old 01-25-2008
if you are using an editor such as emacs or vi, the usual cut-copy-paste commands are available in them
check the cut and paste commands, if they help in what you want to do
for complex operations, sed and awk would be useful
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Vi Editor

Hi , I would like to delete all lines after 40th line in vi editor . Please let me know what command I can use for it? Also how to replace one word with another in the middle of 5th line? Thanks (2 Replies)
Discussion started by: manish_1678
2 Replies

2. Shell Programming and Scripting

Not able to use @ in VI editor

Hello All, Need one Help for one issue. I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it. It is working everywhere but not inside Vi editor. I can type @ in shell, in notepad. But inside Vi editor it is not working, another problem is that if... (2 Replies)
Discussion started by: yadavricky
2 Replies

3. Shell Programming and Scripting

About vi editor

How can ` character be printed on vi editor ? empl_id=`echo $line | awk ' { print $1; } '` (2 Replies)
Discussion started by: senem
2 Replies

4. SCO

regarding vi editor

hello friends, i wud like to get some suggestion for a Q i faced in an interview.......... the Q is........... suppose a person is working on vi .the file is very large and he hasn't saved anything ........suddenly power goes off and system shuts down ...after power comes up the system is... (4 Replies)
Discussion started by: girish_shukla
4 Replies

5. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

6. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

7. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

8. UNIX for Dummies Questions & Answers

vi editor

Hi all! I'm trying to create text file with printed 30 line numbers. I tried :set number but it only displays line numbers - not printing them as a text. Anyone done this before? I'd appreciate any help. (4 Replies)
Discussion started by: spiritedaway
4 Replies

9. UNIX for Dummies Questions & Answers

Urgent answer needed, please: help with a text editor

I'm sorry if this has been posted before, but I'm in a big hurry and I need a pretty quick answer: I have to make a project for school which consists of many BASH scripts. At school we have Sun Sparcs. During the laboratory hours I used to open the text editor (in the graphics interface), edit the... (4 Replies)
Discussion started by: MtFR
4 Replies
Login or Register to Ask a Question