Search Results

Search: Posts Made By: jayeshpatel
2,446
Posted By jayeshpatel
I get this. typeset: not found
I get this.
typeset: not found
2,446
Posted By jayeshpatel
I agree the solution with echo removes "m" and...
I agree the solution with echo removes "m" and keeps values whihc ends in "s" or "h".

My ultimate goal is to get value in numeric for "m".

But my main problem is I am not sure what I am going...
2,446
Posted By jayeshpatel
First part is good for comparing with empty...
First part is good for comparing with empty value. Thx

Now I need to add the loop in which it should compare whether test4 ends "h" or "s", if it is then ignore.

Otherwise it should use test4...
2,446
Posted By jayeshpatel
It does not help. Loop is not working properly...
It does not help.
Loop is not working properly with -z option.
2,446
Posted By jayeshpatel
Suggestion did not work. Can you provide me...
Suggestion did not work.

Can you provide me small script, with following info.

if $test value is empty or $test value is 12s( any numeric ) or $tet value is 32h ( any numeric instead of 32 )...
2,446
Posted By jayeshpatel
It works. Thanks a lot. I truly appreciate your...
It works. Thanks a lot.
I truly appreciate your help.

Regards,

Jay

---------- Post updated at 11:55 AM ---------- Previous update was at 11:45 AM ----------



One more question,
In...
2,749
Posted By jayeshpatel
Now the recent command you send does not give me...
Now the recent command you send does not give me any values.

When I run 2 command separately you gave me before I get 44m.

If I use the the command ( the first one for thread you gave me )...
2,446
Posted By jayeshpatel
#echo $a 99m DR# echo ${a/m/} ksh: ${a/m/}:...
#echo $a
99m
DR# echo ${a/m/}
ksh: ${a/m/}: bad substitution
2,749
Posted By jayeshpatel
Result=44m One more point, requirement is...
Result=44m

One more point, requirement is also changed.

3rd column from last , gives me values ending in s, m and h.

I need to compare the value of 3rd column is ending with m.

If it...
2,446
Posted By jayeshpatel
Checking variable with specific string and stripping number from it.
I am parsing a file and I get differnt results everytime.
Sometimes I get 12s sometimes I get 54m and sometime 3h..

v1=12s or v1=54m or v1=3h

12s - 12 seconds
54m - 54 minutes
3h - 3 hour...
2,749
Posted By jayeshpatel
Need help on awk
Hi Pamu,
Now I have to get the info on Minute from last 3rd columnd.

03:08:53 20480000 200000 E E 6 0 22 0 1 2986 1.49% 2h 10m 501.45s 62.19s

I...
2,749
Posted By jayeshpatel
cat timesheettest.log.2 16:32:36 20480000 ...
cat timesheettest.log.2
16:32:36 20480000 200000 E E 9 0 147 193 1 47 0.02% 3d 14s 0.32s 0.21s

I tried nawk , it did not fail but did not gave me any...
2,749
Posted By jayeshpatel
Thank you. Some syntax errors
Thank you very much but I am hitting some syntax errors.
awk '$(NF-2) ~ /s/{gsub("s","",$(NF-2));if($(NF-2) > 30){print }}' timesheettest.log > /tmp/final1
awk: syntax error near line 1
awk:...
2,749
Posted By jayeshpatel
How do I parse file with multiple different columns ?
I have a tool which generates results in a file at every minute and which has following columns.
I need to create a script checks this file constantly and if Column ( QOM ) has value more then "30S"...
Showing results 1 to 14 of 14

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