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 -->
  #2 (permalink)  
Old 05-26-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
Quote:
Originally Posted by repinementer View Post
Hi I have the follwong command at the end of the program

print arr[1]" "arr[2]" "arr[3]}

I would like to insert the tabs in these three values and 3 values should be in single line.

Would u guys plz suggest me what to do!
are you using that print command inside an awk??
if so just set OFS=" "
or else use \t
or else place a tab inbetween

Last edited by vidyadhar85; 05-26-2009 at 11:39 PM..