The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: SED - Help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-20-2008
Jack79_mi Jack79_mi is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
SED - Help

Hello,

I need an help for a shellscript.

I have a process that create an output file with a list of names, and it create an output file ( everytime the list of names can change ), this is the output file let's call names.txt:


prgrm> list nametable show NAMES

NAMES
-------------------------------
JOHN
MARK
ANTHONY
GEORGE

4 row returned.

prgrm> spool off



I want to use SED or ( something else would be nice and appreciated as well ) for creating a second file named names2.txt with this content:

JOHN
MARK
ANTHONY
GEORGE


This was an example... and everytime the name list may vary....
Can you help me ? My brain is smoking for thinking about a solution

Many Thanks
Jack79_mi