Search Results

Search: Posts Made By: Ramakrishna V
4,272
Posted By Ramakrishna V
my actual goal is i want to recall array values...
my actual goal is i want to recall array values again some whereelse in script
4,272
Posted By Ramakrishna V
Assigning array values using awk in shell scripting
hi
My script as below

#!/bin/ksh
for i in `seq 1 7`
do
a[$i]=$(awk '{print $i}' /home/rama/expenese.txt)
done
for i in `seq 1 7`
do
echo "${a[i]}"
done

content of expense.txt is as...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy