The UNIX and Linux Forums  

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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Removing blank lines from comma seperated and space seperated file. pinnacle Shell Programming and Scripting 11 05-08-2009 12:58 PM
Shell script: Remove blank lines gholdbhurg Shell Programming and Scripting 3 02-25-2009 02:33 PM
Argument in shell script never blank cdines Shell Programming and Scripting 1 06-09-2008 04:53 AM
appending space to variable viv1 Shell Programming and Scripting 5 02-04-2008 07:01 AM
append blank space HAA Shell Programming and Scripting 1 09-03-2007 05:43 AM

Closed Thread
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
  #1 (permalink)  
Old 05-06-2009
praka praka is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 18
Thumbs up Blank Space is not appending in each row of CSV File - Shell Script

I am calling SQL script in my UNIX Shell script and trying to create the CSV file and my last column value of each row is 23 blank spaces.

In my SQL script,the last column is like below.

RPAD(' ',23,' ') -- Padding 23 blank Spaces

The CSV file is generated but the sapce(23 spaces) is not appending in each row of the CSV file.

I edited the CSV file and the cursor is not allowing to go last column(23 spaces).

Pls help me to resolve this issue.
  #2 (permalink)  
Old 05-06-2009
praka praka is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 18
I am able to edit last 23 spaces of each row in some other environment but in unix i am not able to edit the last 23 spaces.
  #3 (permalink)  
Old 05-06-2009
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,350
Place the spaces in the last column between double quotes.

Regards
Closed Thread

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 07:48 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