Search Results

Search: Posts Made By: RavinderSingh13
1,266
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 4 Weeks Ago
299
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...
113
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}}' ...
124
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...
162
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")...
236
Posted By RavinderSingh13
Hello baris35, Could you please try...
Hello baris35,

Could you please try following.

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


Thanks,
R. Singh
270
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
370
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...
370
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
}...
182
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...
105
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
105
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,038
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,065
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,065
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=","}...
306
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,665
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
1,665
Posted By RavinderSingh13
Hello edujs7, Could you please try...
Hello edujs7,

Could you please try following.


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


Thanks,
R. Singh
309
Posted By RavinderSingh13
Hello ncwxpanther, Could you please try...
Hello ncwxpanther,

Could you please try following too, it considers that your Input_file is sorted by 1st field(as per shown samples),if not then we could add like sort -k1 Input_file | awk .......
522
Posted By RavinderSingh13
Thanks Robin for sharing it. Sudo with nonpasswd...
Thanks Robin for sharing it. Sudo with nonpasswd is really good idea. To be honest I myself did 1 automation few backs only with using this and this facility is cool and safe too.

Thanks,
R. Singh
153
Posted By RavinderSingh13
Hello big123456, Not sure what do you mean...
Hello big123456,

Not sure what do you mean by do something in your question, for printing you could try following.


awk '{print "sid="$2 ORS "user=",$3 OFS "profile=",$4 ORS "do...
143
Posted By RavinderSingh13
Hello Rtk, Could you please try following. ...
Hello Rtk,

Could you please try following.

awk 'BEGIN{s1="'";OFS=","} {val=val?val OFS $0:$0} END{print s1 val s1}' Input_file


Thanks,
R. Singh
Forum: Web Development 04-21-2019
1,038
Posted By RavinderSingh13
Thanks a TON Neo for letting know, I went through...
Thanks a TON Neo for letting know, I went through "fake json data" site(seems like they have lot of types of call making to their sample data to get started), so it means I need to call APIs from php...
Forum: Web Development 04-21-2019
1,038
Posted By RavinderSingh13
Thanks a TON Neo for letting know, yes you are...
Thanks a TON Neo for letting know, yes you are right without <...type="text/javascript" too it is running, will try out options in VSC too thank you.

Here is my very FIRST LOGIN Page program(FAIR...
Forum: Web Development 04-21-2019
1,038
Posted By RavinderSingh13
Thanks a TON Neo for encouragement here, fingers...
Thanks a TON Neo for encouragement here, fingers crossed, I pray to GOD to give me strength to learn more daily basis.

Hello All,

I created a simple side navigation bar, where all...
Showing results 1 to 25 of 500