Hello, i am new in Bash. Actually i have a directory : /home/resultfiles and inside i have these txt files: 531_1.out.res, 531_2.out.res , 531_3.out.res 532_1.out.res, 532_2.out.res , 532_3.out.res 533_1.out.res, 533_2.out.res, 533_3.out.res
All these txt files has this format :
My purpose is to make a script in order to find the maximum value for map(0.3144 in the example) between 531_1.out.res, 531_2.out.res , 531_3.out.res, then the maximum value between 532_1.out.res, 532_2.out.res , 532_3.out.res, and then the maximum value between 533_1.out.res, 533_2.out.res, 533_3.out.res. When i find the maximum value for them (531,532,533) i want to return also the name of the txt file where the maximum value map was found.
I suppose that i have to store firstly all the map values in an array and then find the maximum.
Thanks in advance!
Last edited by Don Cragun; 12-07-2014 at 12:26 AM..
Reason: Add CODE and ICODE tags.
Hello,
I have output in one file that looks like:
AA 3
BB 1
CC 3
DD 6
EE 2
FF 6 And output in another file that looks like:
1 EE
3 CC
2 AA I basically want to be able to match the counts in each file against the correct corresponding initials (and then obviosuly base a command on... (7 Replies)
Hi
Q1. I have a scenario to run cfsend command,this command will run based on node name,port num,userid and password
I was created one file called test.txt and inserted two values,then called those two values from test.txt file that pointed to node place and ran the script it worked fine
Now... (10 Replies)
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- I am trying to compare the values of Column1 of File1 with Column1 of File2. If a match is found, print the corresponding value from Column2 of File1 in Column5 of File2.
- I tried to modify and use... (10 Replies)
Hi there,
I want to compare 2nd column which are alphanumeric values from each of the 2 files i.e.,lspv_pre.out and lspv_post.out , if found echo some message.
lspv_pre.out
hdisk0 00c39eaa451144dd rootvg active
hdisk1 00c39eaa45223322 ... (3 Replies)
Hello,
I need to compare two files which have the following structure
File1:
No : 1
Name : George/Brown
Value2 : type2
Value3 : type3
Date : Wed Oct 20 11:12:58 2010
Value : yes
No : 2
Name : John/Cash
Value2 :... (4 Replies)
:(
Hello,
Having a problem with reading two files using awk/nawk, am new to both them.
I need to compare field values between two csv files and arrange for an appropriate output if both the values are equal or not for each feild.
$cat File1.csv... (4 Replies)
Hi, I want to compare two txt files and output the matches to a file. For example I have
FILE1 - accounts1.txt
Peter
norman
elektra
table
CHAIR
Newman
nOvice
FILE2 - accounts2.txt
noland
trainfil
peter
Newman
norman
neverlan
CHAIR
jackson
KelSo (4 Replies)
I have two files with same name residing in different directory. Each file has 14 columns. I want to compare column by column for each row.
Also, have to take two columns as key identifier;pick a row in File1; retrieve the corresponding row from file2 and then compare the values.
Can... (1 Reply)