The UNIX and Linux Forums  


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




Thread: help me
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-28-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
Quote:
please tell me as earli as possible.
This is not encouraged.

Looking for something like this,

Just to store,

Code:
awk '{ for(i=65; i<=90; i++) {  arr[i]=i } }' /bin/ls

To store and display

Code:
awk '{ for(i=65; i<=90; i++) {  arr[i]=i } }END{ for ( i in arr ) { printf "%d %c\n", i, arr[i] } }' /bin/ls