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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-07-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
What is the significance of
Code:
position:
12345678901234567890123 4
Try this.

Code:
[/tmp]$ cat in
1200120136420 1210324120 12145123
1200120136420 1210324120 22178210
[/tmp]$ cat try.ksh
#! /bin/ksh

typeset -L24 left
typeset -R1 right

while read line 
do
        left=$line
        right=$left
        echo $right
done < in
[/tmp]$ ./try.ksh
0
0
[/tmp]$