The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-07-2008
thana thana is offline
Registered User
 

Join Date: Jan 2008
Posts: 52
Lines too long error

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!!!!
Reply With Quote
Forum Sponsor