Dimitre Radoulov

less info
364 reputation
14
bio website
location Milan, Italy
age 39
visits member for 2 years, 5 months
seen 2 days ago
stats profile views 16

Feb
8
answered Mysql LOG only specific users
Feb
8
comment MySQL stop/waiting issues; “can't connect … through socket”
Please post the content of the MySQL error log.
Feb
8
comment Failure to install MySQL
No, ignore the message about the FEDERATED plugin. Please post the entire MySQL error log.
Feb
4
comment Redirecting the content of a file to the command “echo”
Yes, with ksh, zsh and bash you can use $(<filename).
Feb
1
comment Pattern matching on path names in bash
I didn't know that, thank you!
Feb
1
awarded  Commentator
Feb
1
comment Pattern matching on path names in bash
The semicolon in i=${x#*/}; i=${i%%/*} is optional, right?
Jan
27
comment The result of ls * , ls ** and ls ***
I continue to give +1, I'm really happy to see Stephane Chazelas active here on unix.stackexchange.com! Great contributions, Stephane, as always!
Feb
2
comment Efficient way of comparing in awk
I suppose it's mostly because every time you're referencing a non-existing key (i.e. orderIds[$0] when $0 is not currently in orderIds) you're actually creating a new entry in the array (with a null string value). Try to test the number of elements in the orderIds array after all input has been read (in an END block) with your code and compare it with my script - with your script you'll end up with more entries (one for every printed line). Out of curiosity, you may try the script with mawk (if you have it), it could be even faster.
Feb
2
answered Efficient way of comparing in awk
Dec
15
awarded  Yearling
Oct
28
comment Can I use tail with a file both as input and destination?
@symcbean, yes, very good point! I suppose that could be handled with fuser.
Oct
27
awarded  Editor
Oct
27
comment How would I sort these directory names numerically?
Hi @twblamer, I've just added an example in my post. Could you please post the output that you get?
Oct
27
revised How would I sort these directory names numerically?
added 1954 characters in body
Oct
27
answered How to alter PATH within bash script?
Oct
27
answered How would I sort these directory names numerically?
Oct
27
comment Can I use tail with a file both as input and destination?
Yes, you should definitely use logrotate.
Oct
27
answered Can I use tail with a file both as input and destination?
Oct
13
answered Show lines matching a pattern and the 4 lines before each