Looking for quick way of editing a text file

Jim Cornette fc-cornette at insight.rr.com
Mon Nov 21 01:38:17 UTC 2005


Gilboa Davara wrote:

>On Sun, 2005-11-20 at 10:18 -0500, Jim Cornette wrote:
>  
>
>>Gilboa Davara wrote:
>>    
>>
>>>Try tr(1), sed(1) and awk(1).
>>>
>>>To replace a single line (or part of it):
>>>cat file.txt | sed 's/old_line/new_line/g' > newfile.txt
>>>
>>>Gilboa
>>>
>>> 
>>>
>>>      
>>>
>>nano is an easy and quick editor. The commands are simple, ^o to write 
>>out and ^x to quit. The program is installed by default.
>>
>>Jim
>>
>>-- 
>>    
>>
>
>The OP said:
>"Is there some quick way of editing a specific line of a text file **without** using a text editor?"
>
>I believe nano qualifies as a text editor, am I wrong? ;)
>  
>
You're right! I believe both the subject and message body were 
addressed. :-)

Jim

>Gilboa
>
>  
>


-- 
The goal of Computer Science is to build something that will last at
least until we've finished building it.




More information about the fedora-list mailing list