The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Dynamically Creating and Printing to Files Laud12345 Shell Programming and Scripting 1 03-18-2009 10:45 PM
creating new files montana77 UNIX for Dummies Questions & Answers 4 04-13-2008 02:20 AM
Problem with creating big files eliraza6 Linux 6 11-06-2007 09:54 AM
Problem creating files greater than 2GB bobbyjohnz UNIX for Advanced & Expert Users 1 01-17-2007 12:19 PM
extract tar files without creating directory here2learn UNIX for Dummies Questions & Answers 4 10-02-2006 07:42 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-21-2008
dr46014 dr46014 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 94
Creating CSV Files

I have a requiremnt to create one CSV file with initial 5 lines as blank rows.
From 5th row onwards the file is to be created from a list of varibales which gets evaluated.
Say A,B,C,D,E are 5 varibales with some value associated with each of them and data type is string.
So the 6th row should contain A,B,C,D,E
Again after 6th row the same set of varibales are evaluated again and the next to is appended to the file with similar structure and so on.

The file looks like

line1 :
line2 :
line3 :
line4 :
line5 :
line6 :10,XYZ,HTHK,7485566,BGYHUJJJ
line7 :20,hggo,gfgfr,grgregre,599999

the line x : should not be present.its there for understanding purpose.
Each row is based on some functional area and the values of varibales are assigned and then row is created.Then again another set of values are assigned.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0