Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Search Results

Search: Posts Made By: RavinderSingh13
126
Posted By RavinderSingh13
Hello arunkumar_mca, Could you please try...
Hello arunkumar_mca,

Could you please try following once.


awk '{val1=substr($0,9,6);val2=val1+0<10000?sprintf("%06d",val1*1000):val1;print substr($0,1,8) val2 substr($0,15)}' Input_file

...
257
Posted By RavinderSingh13
Hello Raghuram717, Could you please try...
Hello Raghuram717,

Could you please try following(haven't tested it though).


awk '/^sdg-catalog/{close(file);file=$0;next} {print > file}' Input_file


Thanks,
R. Singh
Forum: What is on Your Mind? 1 Week Ago
439
Posted By RavinderSingh13
Thanks Rudi for pointing this out :b: ...
Thanks Rudi for pointing this out :b:

Congratulations DON for this great achievement :b:
May GOD bless you with health and more knowledge, we all learn a lot from you, cheers.

Thanks,
R....
233
Posted By RavinderSingh13
Thank you Peasant and Dennis for your replies. I...
Thank you Peasant and Dennis for your replies. I have created systemctl scripts(which are eg--> stop, start applications, call specific python, shell, perl programs in them too). So lets say 1 of the...
233
Posted By RavinderSingh13
Hello Neo, Thank you for sharing the link, I...
Hello Neo,

Thank you for sharing the link, I am aware of creating systemd scripts with multiple options; I had created multiple of them. My question is related to options while running them. Like...
233
Posted By RavinderSingh13
How to create custom options of my own in systemctl Linux?
Hello All,

Greetings!!

I was trying to create a custom option in systemctl like its out of the box options eg--> status, stop, start, restart, I have tried searching in google but didn't find...
377
Posted By RavinderSingh13
Hello pavan, If you are ok with awk then you...
Hello pavan,

If you are ok with awk then you could try following too once.


match=$(awk '/Hello/ && !/Hi/' Input_file)


Thanks,
R. Singh
514
Posted By RavinderSingh13
Hello utkarshkhanna44, In case you want to...
Hello utkarshkhanna44,

In case you want to get everything(NOT exactly 30M) then you could try following.

awk -F, 'match($2,/\.[0-9a-zA-Z]+ \( [^)]* \)/){print substr($2,RSTART,RLENGTH)}' ...
1,644
Posted By RavinderSingh13
Hello DevAakash, Could you please try...
Hello DevAakash,

Could you please try following.

awk 'FNR==NR{for(i=1;i<=NF;i++){a[i]=$i};next} {print a[FNR],$2}' FS="," Input_file2 FS=":" OFS=":" Input_file1


Thanks,
R. Singh
Forum: Cybersecurity 05-16-2019
525
Posted By RavinderSingh13
**ALERT**ALERT* Whats app requesting users to upgrade to latest version as; its vulnerability found.
Hello All,

Want to share here an article for Whats app users that team whats app is requesting users to upgrade to its latest version since they have found a vulnerability; where Hacker could turn...
120
Posted By RavinderSingh13
Hello cmccabe, Could you please try...
Hello cmccabe,

Could you please try following.

awk -F, '/VPS/{num=split($4,array,"[ -]");if(num==3){print array[1],array[2]+1,array[3],$1};if(num==2){print array[1],array[2]-1,array[2],$1}}' ...
140
Posted By RavinderSingh13
Hello baris35, Very good that you have...
Hello baris35,

Very good that you have solved your question by yourself and appreciate that you have shared with us too, keep it up :b:
You could better your solution by doing this:

awk...
170
Posted By RavinderSingh13
Hello svks1985, Could you please try...
Hello svks1985,

Could you please try following.

awk 'FNR==NR{a[FNR]=$0;next} {print a[FNR]"|"$0}' <(echo "$var1") <(echo "$var2")


2nd solution: With paste.

paste -d'|' <(echo "$var1")...
288
Posted By RavinderSingh13
Hello baris35, Could you please try...
Hello baris35,

Could you please try following.

sed 's/\./%/g' Input_file


Thanks,
R. Singh
293
Posted By RavinderSingh13
Hello stomp, Nice solution in jq, could you...
Hello stomp,

Nice solution in jq, could you please do let us know any documentation which we could follow for learning jq. Will be grateful to you.

Thanks,
R. Singh
432
Posted By RavinderSingh13
Hello ravi, 2 things here. 1- For...
Hello ravi,

2 things here.

1- For thanking any person for any useful post(s) you could HIT thanks button at bottom left corner of each post :b:
2- For your question; you have to provide...
432
Posted By RavinderSingh13
Hello ravi, Could you please try following...
Hello ravi,

Could you please try following once.

awk -F"[><]" '
/\/log-message/{
if(value){
print value
}
value=""
next
}
/timestamp/{
value="timestamp="$3
next
}...
198
Posted By RavinderSingh13
May be this could be a help, using iname from...
May be this could be a help, using iname from find command. maxdepth option could be set as or if you want to look in whole file system then remove it. By doing this you are simply telling find...
107
Posted By RavinderSingh13
Hello dineshkumarsrk, Ok sure try following....
Hello dineshkumarsrk,

Ok sure try following.

awk 'FNR==1{print;next} {for(i=1;i<=NF;i++){if($i+0>=100){$i="True"}}} 1' Input_file | column -t


Thanks,
R. Singh
107
Posted By RavinderSingh13
Hello dineshkumarsrk, Could you please try...
Hello dineshkumarsrk,

Could you please try following.

awk 'FNR==1{print;next} {for(i=1;i<=NF;i++){if($i+0>100){$i="True"}}} 1' Input_file | column -t


Thanks,
R. Singh
Forum: Web Development 04-29-2019
1,083
Posted By RavinderSingh13
Thanks a TON Neo for letting me/us know this...
Thanks a TON Neo for letting me/us know this great video. I have gone through it, I understood the concept of it but syntax vice it will take sometime :)

Let me put my learning from the video in...
1,092
Posted By RavinderSingh13
Cool solution nez, how about a pure BASH one,...
Cool solution nez, how about a pure BASH one, just for fun :)


while IFS=, read field1 field2
do
if [[ ${#field1} -eq 1 ]]
then
field1=${field1}${field1}
fi
echo...
1,092
Posted By RavinderSingh13
Hello nengcheng, It is always recommended to...
Hello nengcheng,

It is always recommended to add your efforts in your post which you have out in order to solve your own problem, could you please try following.


awk 'BEGIN{FS=OFS=","}...
343
Posted By RavinderSingh13
Hello edujs7, IMHO you should open 1 thread...
Hello edujs7,

IMHO you should open 1 thread for each question, else people who are seeing this thread in future could be confused. So I am answering very first question of yours. Could you please...
1,698
Posted By RavinderSingh13
Hello edujs7, In case you want to have only...
Hello edujs7,

In case you want to have only variable names then try following.

env | awk 'BEGIN{FS="="} $1 ~ /.*(NAME$|DIR$|PATH$)/{print $1}'


Thanks,
R. Singh
Showing results 1 to 25 of 500

 

Featured Tech Videos