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 > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-28-2008
smr_rashmy smr_rashmy is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 39
Yes this is working...

the scenario is,

i will get values from some other files to variables.

those variables may contain blank spaces.
and i need to write the empty spaces also.

like v1="aaa "
v2=" "
v3="BBB"

i want to write these variables into a file with the blank spaces. coz some other program will read it based on the positions.

Note: Even if some variables contains more length say 15 and i may required to get only 10.

does it make any sense frnd?

Last edited by smr_rashmy; 01-28-2008 at 04:33 AM..