Re: [Tutor] How to compare dates which has (,)

2016-03-10 Thread Fosiul Alam
gt;> and write your log files. If not then try the old good Json. These modules >> are good data extraction and data writing. >> >> On Mon, Mar 7, 2016 at 4:39 AM, Fosiul Alam wrote: >> >>> Hi , >>> my bellow codes work ok to compare date and time for

[Tutor] How to compare dates which has (,)

2016-03-06 Thread Fosiul Alam
Hi , my bellow codes work ok to compare date and time for perticular format example Feb 7 07:33:19 , but I am not understanding how do i capture and compare dates in bellow formate (,) : also, i having trouble to implement this in python : grep -E -A5 -B3 So basically what i am want is : SCAN

Re: [Tutor] How to calculate high value from multiple lines for each column

2016-02-28 Thread Fosiul Alam
: print "svtm-%s ,%s" % (key, max(values[key][0][1:])) print "iostat-%s ,%s" % (key, max(values[key][1][1:])) On Sun, Feb 28, 2016 at 12:30 AM, Alan Gauld wrote: > On 27/02/16 15:46, Fosiul Alam wrote: > > > a) Can I combile 2 forl

Re: [Tutor] How to calculate high value from multiple lines for each column

2016-02-27 Thread Fosiul Alam
003, 1.0, 0.5] iostat-dm-31 ,[6.3701, 1.5, 0.59998] Remove First value 18.27 SVTM DM30: 2.0 Remove First VAlue for 6.36 IOSTAT DM-30 1.0 Thanks for the help. On Fri, Feb 26, 2016 at 8:12 AM, Alan Gauld wrote: > On 26/02/16 02:36, Fosiul Alam wrote: > > 1) the

Re: [Tutor] How to calculate high value from multiple lines for each column

2016-02-26 Thread Fosiul Alam
003]] === ['dm-31', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '3.00', '1.50'] [[18.281], [6.37000001]] === ['dm-30&

Re: [Tutor] How to calculate high value from multiple lines for each column

2016-02-25 Thread Fosiul Alam
fiend anywhere, so how we putting data into variables "values" ? Thanks fror the help On Wed, Feb 24, 2016 at 1:06 AM, Alan Gauld wrote: > On 23/02/16 20:33, Fosiul Alam wrote: > > > > so there are 2 dm (dm-30 and dm-31) wich 3 sample value > > > > dm-

Re: [Tutor] How to calculate high value from multiple lines for each column

2016-02-23 Thread Fosiul Alam
.60']} I wanted to combine s_value and u_value with each Max value like bellow {'dm-30': ['2.0', '1.0'], 'dm-31': ['3.0', '1.50']} or just get the Max value for each dm in s_value and u_value like bellow {'dm-30':2.00, &

[Tutor] How to calculate high value from multiple lines for each column

2016-02-17 Thread Fosiul Alam
Hi I am very new to python, basically , I want to get the Maximum value for each column 0.000 0.000 0.0000 (0.0%) 0.000 0.600 0.000 3.000 6.0001 (0.0%) 0.300 0.000

[Tutor] How to get Key from multiple value dictionary search

2016-01-06 Thread Fosiul Alam
Hi All, I refer to this website https://www.codecademy.com/forum_questions/50721fce7c7091000201e56a dic = {'key1': ["value1", "value2"], 'key2': ["value77", "something"] } what I wanted to learn is : a) how do i get the key only by providing value i.e value77 ? b) Please help to break t

Re: [Tutor] how to grep a word and make a dictionary from multiple lines.

2016-01-05 Thread Fosiul Alam
sdku 67:288 active ready running `- 1:0:2:68 sdacx 8:912active ready running On Mon, Jan 4, 2016 at 11:54 PM, David Rock wrote: > * Fosiul Alam [2016-01-04 22:29]: > > Hi Expert, > > I am learning python to do some system admin code, i am still in the > > process of l

[Tutor] how to grep a word and make a dictionary from multiple lines.

2016-01-04 Thread Fosiul Alam
Hi Expert, I am learning python to do some system admin code, i am still in the process of learning but I need a help on bellow code in urgent, i will be really greatfull for any help Basically i wanted like this :- grep a line which has 1:0:0:129 , and get the LUN number(i.e 36006016565656563434