The UNIX and Linux Forums  


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 04-21-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
I ran your script .... it is expecting the input from stdin ...
and then going infinite loop.

I modified your script little bit ...
Just see "is this what you wanted ?"

But, still i''m not able to get what you are trying to do .


Code:

V1=358504 V2=FD0147 V3=dev5 V4=94577 V5=0 V6=UNIX V7=Policy V8=server V9=04/15/05 V10=19:18:41 V11=2341321467


for i in  $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 
do
 printf "\n%s %s %s %s %s %s %s %s %s %s %s" $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 
done