Search Results

Search: Posts Made By: RavinderSingh13
Forum: What is on Your Mind? 1 Day Ago
261
Posted By RavinderSingh13
Thanks a TON Neo for giving me this GREAT honor...
Thanks a TON Neo for giving me this GREAT honor :b:, its always an honor to be a member of this GREAT site :b:, whatever I know in scripting/*nix I learnt from this forum/site and whatever way or...
96
Posted By RavinderSingh13
Hello gc_sw, On UNIX.com we do encourage...
Hello gc_sw,

On UNIX.com we do encourage users to add their efforts which they have put in order to solve their own problems.
So kindly do edit your post and add the attempted code by you and let...
127
Posted By RavinderSingh13
Hello big123456, IMHO I think you are...
Hello big123456,

IMHO I think you are looking for grep -l option, since it will only print Filenames which have that specific text in them, try something like:


find /tmp/ -type f -exec grep...
330
Posted By RavinderSingh13
Thank you :) For your questions, why a[$1]...
Thank you :)

For your questions, why a[$1] didn't throw errors because if any variable is NOT initialized in awk and we are using it in any condition or etc then its value will be considered as...
330
Posted By RavinderSingh13
Hello beca123456, Could you please try...
Hello beca123456,

Could you please try following.


awk 'BEGIN{FS=OFS="|"} FNR==NR{b[$1]=length($3)>a[$1]?$3:b[$1];a[$1]=length($3)>a[$1]?length($3):a[$1];next} length($3)<a[$1]{$3=b[$1]} 1' ...
677
Posted By RavinderSingh13
Hello abhaydas, Always try to following rule...
Hello abhaydas,

Always try to following rule of 1 thread ==> 1 question please.

Geeks have really helped you in this thread, so for future users who want to get reference from this thread, will...
542
Posted By RavinderSingh13
Hello kumarinfa, For Thanking someone on...
Hello kumarinfa,

For Thanking someone on Unix.com you could HIT THANKS button at the left corner of each post.

For your other question in your previous post, I believe my same command should...
677
Posted By RavinderSingh13
Your Welcome. On unix.com we Thank people for...
Your Welcome. On unix.com we Thank people for useful posts by hitting THANKS button at each post's last left side, you could do so too, cheers and happy learning.

Also don't forget to put code...
677
Posted By RavinderSingh13
Hello abhaydas, I don't have Solaris so...
Hello abhaydas,

I don't have Solaris so couldn't test it, should work but. Could you please try following.


sed '3s/^/#/' abc.txt > temp && mv temp abc.txt


Thanks,
R. Singh
542
Posted By RavinderSingh13
Hello kumarinfa, Following is the complete...
Hello kumarinfa,

Following is the complete explanation.


awk ' ##starting awk program from here.
{
split($NF,array,"[_.]") ##Using split to...
542
Posted By RavinderSingh13
Hello kumarinfa, I am considering that you...
Hello kumarinfa,

I am considering that you have saved output of ls command into a file and then I have written this code.


awk '{split($NF,array,"[_.]");$NF=array[2] OFS $NF} 1' Input_file
...
Forum: What is on Your Mind? 3 Weeks Ago
156
Posted By RavinderSingh13
Happy New Year 2020 to all :)
Hello All,

I would like to wish A very Happy New Year 2020 to all. May GOD bless all of us with TRUE knowledge, wisdom, great attitude, honesty, hard working capability, great health :b:

Cheers...
841
Posted By RavinderSingh13
Hey nez, How about some Monday fun :cool: ...
Hey nez,

How about some Monday fun :cool:


echo "all of the kings of Norway" | awk '{sum+=gsub(/of/,"&")} END{print sum}'


Taken example from Jim's sample echo message, cheers.

Thanks,...
841
Posted By RavinderSingh13
Hello milhan, If you see OP's question...
Hello milhan,

If you see OP's question carefully, OP needs to know total number of matched count of string NOT number of lines and as per your posted quote seems -c Option gives matched number of...
817
Posted By RavinderSingh13
Hello nez, How are you? I hope you are...
Hello nez,

How are you?
I hope you are doing fine :)

For your this solution, if you ask me IMHO we could avoid using renaming of a Input_file with system while reading Input_file itself...
Forum: What is on Your Mind? 4 Weeks Ago
141
Posted By RavinderSingh13
Merry Christmas 2019 :) :)
Hello All,

I would like to wish merry x-mas to all of you. May GOD bless us all with wisdom, love, positivity and great positive energy, cheers and happy holidays :)

Thanks,
R. Singh
757
Posted By RavinderSingh13
Hello cowa, Welcome to forums, special...
Hello cowa,

Welcome to forums, special thanks for using CODE TAGS for samples.

On UNIX.com we encourage users to show their efforts in their questions which they have put in order to solve...
Forum: What is on Your Mind? 12-22-2019
275
Posted By RavinderSingh13
Hey Neo, IMHO Rich is who is blessed with...
Hey Neo,

IMHO Rich is who is blessed with knowledge and you are blessed with it(with your hard work, intelligence you gained it). So you are Richer than most of influential people out there IMHO...
Forum: What is on Your Mind? 12-22-2019
275
Posted By RavinderSingh13
Hello Neo, Thank you Neo for detailed...
Hello Neo,

Thank you Neo for detailed explanation in here. I totally agree with you on the facts which you mentioned. Actually I was looking brighter side of it(being a positive person :) ). But...
Forum: What is on Your Mind? 12-22-2019
275
Posted By RavinderSingh13
Hello Neo, Sorry for not mentioning details...
Hello Neo,

Sorry for not mentioning details in post.

What personally I like is the way A.I progressing in video they shown how they are making a baby(virtual one) learn by feeding data to it(I...
Forum: What is on Your Mind? 12-21-2019
275
Posted By RavinderSingh13
A nice YT video on A.I
Hello All,

Just went through a nice YT video of A.I

Age of A.I YT video (https://youtu.be/UwsrzCVZAb8)

See who is the host of this video :) if you are a Hollywood fan(a bit spoiler)
I...
811
Posted By RavinderSingh13
Hello UnknownGuy, On UNIX.com we encourage...
Hello UnknownGuy,

On UNIX.com we encourage users to add their efforts which they have put in order to solve their own problems.
So please do let us know what you have tried to solve this.
...
850
Posted By RavinderSingh13
Thanks anaigini45 for showing/letting us know...
Thanks anaigini45 for showing/letting us know your efforts to solve this. IMHO if you know which application is culprit and I believe you are NOT owner of this, then first step we could take is...
869
Posted By RavinderSingh13
Hello tomato00, Could you please try...
Hello tomato00,

Could you please try following.


cat script.ksh
declare -a arr=("test" "Monday" "Tuesday" "Wednesday" "Thurday" "Friday" "Saturday" "Sunday")

while read first second...
869
Posted By RavinderSingh13
Hello tomato00, On UNIX.com we encourage...
Hello tomato00,

On UNIX.com we encourage users to add their efforts whatever they have put in order to solve their own problems.
So kindly do let us know your efforts.

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

 

Featured Tech Videos

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