Search Results

Search: Posts Made By: vjasai
27,905
Posted By vjasai
Thanks for the replies. But now i have...
Thanks for the replies.

But now i have modified my script from an array to a file. Now I will have to find the Max and Second Max from a file and store them in two variables.

Also
...
2,339
Posted By vjasai
Extracting numeric from string
I have a file whose contents are:
$ cat file1
cfd_V03R37
cfd_V03R38


tried
sed 's/[^0-9]//g' file1 > file2

$cat file1
0337
0338


Is there any way by which i can work on same file...
27,905
Posted By vjasai
typeset currel_max=0 for i in `echo ${array...
typeset currel_max=0

for i in `echo ${array
}`
do
if [ $currel_max -lt $i ]
then
currel_max=$i
fi
done

so was succesful in finding max value. but want to find second max...
27,905
Posted By vjasai
Finding Max value from an array
Hi,

I need to find max and second max element from an array.
array contains 0338,0337,0339,0340,0401,0402,0403
1,758
Posted By vjasai
finding correct directories
I have directories like V00R01,V00R02,V01R01,V01R02 in a directory
where V is version and R is a release. basically I need to set base directory and current directory. Under a version there can be...
Showing results 1 to 5 of 5

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