View Single Post
  #3 (permalink)  
Old 05-09-2008
esofthub esofthub is offline
Registered User
 

Join Date: Oct 2006
Location: ROK
Posts: 16
Quote:
Originally Posted by thana View Post
Hi Gurus,
I have a big file having around 5000 lines. What I need to do is as below.

$cat myfile
aaaa
bbbb
ccc
ddd
...

I want the output to be as below:

'aaaa,'bbbb','cccc'....

For this I have written something like this

code:
vi sac.txt |nawk '{printf NR","}'>ss
code:

But here the problem is when I try to open the file "ss", it says "Lines to long"

Please helpl me!!!!
Maybe you can use the nedit program to open the "ss" file.
Reply With Quote