Search Results

Search: Posts Made By: alex2005
1,179
Posted By alex2005
Thank you very much for your help, works like a...
Thank you very much for your help, works like a charm.
1,179
Posted By alex2005
Find specific pattern and change some of block values using awk
Hi,

Could you please help me finding a way to replace a specific value in a text block when matching a key pattern ?

I got the keys and the values from a command similar to:

echo -e "key01...
2,482
Posted By alex2005
Thanks for the detailed explanations, for sure...
Thanks for the detailed explanations, for sure will help.
2,482
Posted By alex2005
Hi, Thank you for your post. I was trying to...
Hi, Thank you for your post.

I was trying to figure out what will be the best way to append a variable to the stderr.
2,482
Posted By alex2005
Hello, Thank you very much for taking time to...
Hello, Thank you very much for taking time to answer and for the useful examples.
2,482
Posted By alex2005
Bash - proper way to append variable to stderr
Hello,

Can you please if the bellow is the proper way of appending a variable to the stderr:

The easiest way to test this,I was able to imagine, was by touching 5 files and afterwards looping...
1,229
Posted By alex2005
Many thanks for your help ,and sorry for...
Many thanks for your help ,and sorry for introducing the "IN" instead of "X".

Now everything works like a charm.

Again very smart solution provided.

Kind Regards
1,229
Posted By alex2005
Sorry, I have to come back to this thread, but I...
Sorry, I have to come back to this thread, but I need more help.

Even Scrutinizer script works like a charm, for the case I have presented, I have discovered that some of the files have one or...
1,229
Posted By alex2005
Files summary using awk based on index key
Hello , I have several files which are looking similar to :

file01.txt
keyA001 350 X string001 value001
keyA001 450 X string002 value007
keyA001 454 X string002 value004
keyA001 500 X...
17,184
Posted By alex2005
Gentleman, thank you so much for the time spend...
Gentleman, thank you so much for the time spend helping me to sort this issue out.

Based on your inputs, I managed to assign the variables correctly and have the script running.

Many Thanks
17,184
Posted By alex2005
Hello, Basically the above script supposed...
Hello,

Basically the above script supposed to be a short version of:

#!/bin/bash

mkdir value1
mkdir value2
mkdir value3

value1Value01=$(command 01 value1)
...
17,184
Posted By alex2005
Dynamic variable name in bash
Hello,

I'm trying to build a small script to store a command into a dynamic variable, and I have trouble assigning the variable.

#!/bin/bash

declare -a var1array=("value1" "value2" "value3")...
2,154
Posted By alex2005
Thank you , the above script works very well. ...
Thank you , the above script works very well.

Best Regards
2,154
Posted By alex2005
awk join lines based on keyword
Hello ,

I will need your help once again.

I have the following file:

cat file02.txt
PATTERN XXX.YYY.ZZZ. 500
ROW01 aaa. 300 XS 14
ROW 45 29 AS XD.FD.
PATTERN 500 ZZYN002
ROW gdf...
3,011
Posted By alex2005
Thank you, that's much appreciated. The solution...
Thank you, that's much appreciated. The solution you provided works well.
Best Regards
3,011
Posted By alex2005
Compare multiple arrays elements using awk
I need your help to discover missing elements for each box.
In theory each box should have 4 items: ITEM01, ITEM02, ITEM08, and ITEM10.
Some boxes either have a missing item (BOX02 ITEM08) or...
1,377
Posted By alex2005
Thank you for your answer. Is correct assuming...
Thank you for your answer.
Is correct assuming the one liner will look like this:
awk '/Time_result/ && $3 > 50 { t_flag = 1 ; next } /SELECT/ { s_flag = 1 } /^#/ && s_flag { s_flag = 0 } t_flag...
1,377
Posted By alex2005
Conditional pattern recognition with awk
Hi, I would need some help extracting the desired data from the following text:

# Time_result: 1.056179 next_value: 0.000077
OTHER VALUE 445552341;
SELECT row with values
# IP = 192.168.1.15...
2,120
Posted By alex2005
Thank you both of you for the input. Everything...
Thank you both of you for the input. Everything worked just fine.
2,120
Posted By alex2005
Awk: time intervals based on epoch time
I have a list of epoch times delimited by "-" as follows:

1335078000 - 1335176700
1335340800 - 1335527400
1335771300 - 1335945600
1336201200 - 1336218000

The corresponding dates are:
...
2,117
Posted By alex2005
Thank you very much, your solution worked fine. ...
Thank you very much, your solution worked fine.

Best Regards
2,117
Posted By alex2005
Sorry to bump up to this post again, but I need...
Sorry to bump up to this post again, but I need your help.
Looping to the files I have I noticed that I might have some lines where fields $5 and $6 are not consecutive. Eg:

15 30 21 21 25.00 ...
2,117
Posted By alex2005
Thank you for the useful ideas, will put them in...
Thank you for the useful ideas, will put them in practice.
2,117
Posted By alex2005
Thank you very much, worked like a charm.
Thank you very much, worked like a charm.
2,117
Posted By alex2005
Hi, Thank you for your answer, you are...
Hi,

Thank you for your answer, you are correct, I need to merge only the rows which ends in .0 and yes should be one higher from the previous row if the same values in column $1 and $2.
Showing results 1 to 25 of 60

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