Search Results

Search: Posts Made By: lifeline
8,239
Posted By lifeline
set -A array $(</tmp/inputfile) #reading file in...
set -A array $(</tmp/inputfile) #reading file in array

c= ${#array
} #the no. of elements in the array

i=1

while [ $i -lt $c ]
do
j=`expr $i +1`
v1=`echo ${array[$i]}|cut -d" "...
6,003
Posted By lifeline
friend, your posts are bit too long. just...
friend, your posts are bit too long.

just tell me what is your input and output.
5,441
Posted By lifeline
read the file line by line in a loop. each...
read the file line by line in a loop.

each line will have the "date value". extract them using awk or cut.

compare them to find the greatest value and store the corresponding file name in a...
7,930
Posted By lifeline
use bactics. generally when you write in a...
use bactics.

generally when you write in a script, you use them.

i am not sure if it will work but you may try that out.
Showing results 1 to 4 of 4

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