1,935 reputation
411
bio website linkedin.com/in/dchrikov
location
age
visits member for 1 year, 11 months
seen Dec 16 at 16:00

Dec
9
awarded  Guru
Aug
17
answered How do I validate a settings(ini) file for the values expected using bash?
Jul
28
comment How can I test if a variable is empty or contains only spaces?
From man test: -z STRING - the length of STRING is zero. If you want to remove all spaces in $param, use ${param// /}
Jul
23
awarded  Enlightened
Jul
23
awarded  Nice Answer
Jul
23
comment How to retrieve lost aliases?
You are welcome :)
Jul
23
answered How to retrieve lost aliases?
Jul
21
revised Reverse match in sed, replace opposite of what was found
deleted 1 character in body
Jul
21
answered Reverse match in sed, replace opposite of what was found
Jul
21
comment path in environment variable PATH, but command still not found
execute PATH=/root/opt/rh/mysql55/root/usr/bin/mysql:/usr/lib64/qt-3.3/bin:/usr/local/s‌​bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/opt/rh/mysql55/r‌​oot/usr/bin/mysql; export PATH
Jul
21
comment How to determine the newly closed file within a continuous audit log rotation?
@D-Klotz If your logs rotating every hour, just find the script for rotating and add your own script to the end. Or add a new line to crontab. Something like 10 * * * * your script
Jul
21
comment path in environment variable PATH, but command still not found
run echo -e "PATH=$PATH:/root/opt/rh/mysql55/root/usr/bin/\nexport PATH" >> ~/.bashrc
Jul
21
answered How to determine the newly closed file within a continuous audit log rotation?
Jul
21
comment path in environment variable PATH, but command still not found
Did you run export PATH?
Jul
9
comment Get only file name from find command and mail
Could you clarify your question? Do you need pdf attachments AND list of files?
Jul
8
comment SCP Automation in production environment
...or use expect. But public keys are much better
Jul
8
answered Get only file name from find command and mail
Jul
8
comment sed - replace string with file contents
not sure, but does cat file1 | sed -e 's/localhost/1.1.1.1/g' work?
Jul
8
comment Slow Linux machine
Some hangs could depend on dns requests. At least try to disable dns check in sshd: UseDNS no
Jul
5
comment How to destroy existing disk partitions
$ sign shows you are not. If you not change PS1 of course. :) anyway it's just comment, not the answer.