Search Results

Search: Posts Made By: RavinderSingh13
8,543
Posted By RavinderSingh13
Hello sravani25, Without seeing samples of...
Hello sravani25,

Without seeing samples of your code, without having complete exposure of what you are trying to do; its very difficult to advice on anything. So please do add more details in your...
4,748
Posted By RavinderSingh13
Hello palex, Could you please try following....
Hello palex,

Could you please try following.


awk '{split($1,array,"-");print $1,array[2]}' OFS="\t" Input_file


Thanks,
R. Singh
Forum: Programming 03-13-2020
24,075
Posted By RavinderSingh13
Honestly Neo, they allow are not that is...
Honestly Neo, they allow are not that is secondary for me right now; because let me first learn and automate GOOD stuff which can help people in avoiding monotonous tasks. If I could do in Telegram...
Forum: Programming 03-13-2020
24,075
Posted By RavinderSingh13
Thank you for encouragement Neo :b: Yes, I...
Thank you for encouragement Neo :b:

Yes, I did some stuff from this one(already written almost 8 to 9 functions).

But in company I believe they will NOT allow Telegram(since it could be...
Forum: Programming 03-12-2020
24,075
Posted By RavinderSingh13
Hello Neo/All, Very glad to tell you that...
Hello Neo/All,

Very glad to tell you that after getting inspired from Neo I have build my own very first Bot in Telegram + NR + shell + python(a bit) + JS suit as of now.

Following is its...
Forum: Linux Benchmarks 03-11-2020
42,323
Posted By RavinderSingh13
Thanks a TON stomp for sharing this, please keep...
Thanks a TON stomp for sharing this, please keep it up :b:

Thanks,
R. Singh
Forum: Programming 03-05-2020
24,075
Posted By RavinderSingh13
Thanks a TON Neo for sharing this :b: It really...
Thanks a TON Neo for sharing this :b: It really helps to all of us who want to learn.

After getting inspired from you, highly, I too started, yesterday, and installed node-red in windows system...
Forum: What is on Your Mind? 03-04-2020
16,207
Posted By RavinderSingh13
Hello Neo, Thanks a TON for making this BOT,...
Hello Neo,

Thanks a TON for making this BOT, this is an awesome experience. I played it for 20 mins or so on Telegram.

It is FUN. Appreciate your dedication and hard work here; I wish I could...
5,922
Posted By RavinderSingh13
Hello shanul karim, Thank you for sharing...
Hello shanul karim,

Thank you for sharing your efforts in form of code in your question. Could you please do let us know more clearly what is the logic of getting the expected output. Honestly its...
5,248
Posted By RavinderSingh13
Hello teefa14, On UNIX.com we encourage...
Hello teefa14,

On UNIX.com we encourage users to do add their efforts which they have put in order to solve their own problems, so kindly do add the same(in form of code in CODE TAGS) in your...
19,318
Posted By RavinderSingh13
Hello All, Learnt an example of Lazy match...
Hello All,

Learnt an example of Lazy match in Regex in Perl, so thought to share here.
Let's say following is Input_file.


cat Input_file
abcdtest123^ DUMMYtestabcd12234 DUMMY bla...
10,348
Posted By RavinderSingh13
Hello nez, How about this one then? I am...
Hello nez,

How about this one then? I am sorry I couldn't test it since I don' have my logged into any server so tested on a online editor with 2 lines. Pretty sure should be faster :)


xargs...
10,953
Posted By RavinderSingh13
Hello sagar_1986, Again you are missing the...
Hello sagar_1986,

Again you are missing the point, request to you is to add your efforts in form of code; so kindly do so and let us know then.

Thansk,
R. Singh
10,953
Posted By RavinderSingh13
Hello sagar_1986, Could you please do share...
Hello sagar_1986,

Could you please do share your efforts which you have put in order to solve your own problems?
We encourage users to learn coding on this forum, so please do share so.
...
9,594
Posted By RavinderSingh13
Hello genehunter, This could be easily done...
Hello genehunter,

This could be easily done with bash, could you please try following.
I am using parameter expansion functionality of bash here.


val="_"
for file in *.bum
do
...
9,594
Posted By RavinderSingh13
Hello genehunter, Thanks for showing your...
Hello genehunter,

Thanks for showing your efforts in form of codes.

But your all shown output sample file names CMRLPCR000020_M.bum are same. Wouldn't it overwrite the file, since all file...
6,668
Posted By RavinderSingh13
Hello jeo_fb, Sorry but this is NOT the way...
Hello jeo_fb,

Sorry but this is NOT the way UNIX.com forums work. We do encourage people to add their efforts which they have put in order to solve their own problems, so please do add your...
9,039
Posted By RavinderSingh13
Hello shanul karim, Sorry but this is NOT...
Hello shanul karim,

Sorry but this is NOT the way UNIX.com forums work. We do encourage people to add their efforts which they have put in order to solve their own problems, so please do add your...
19,318
Posted By RavinderSingh13
Hello Nez, Cool; thanks for letting your...
Hello Nez,

Cool; thanks for letting your views , but IMHO why I added that checks in case version is in some other format then it shouldn't have false positive in output.

Thanks,
R. Singh
19,318
Posted By RavinderSingh13
Regex learning.
Hello All,

I have come across a question from colleague about complex regex, so I written a regex using grep's -P option in PCRE regex. Since its a new learning for me, so thought to share with...
16,135
Posted By RavinderSingh13
Hello rohit_shinez, In unix.com we encourage...
Hello rohit_shinez,

In unix.com we encourage all users to do add their efforts which they have put to solve their own problem so kindly do add the same and let us know then.

Thanks,
R. Singh
Forum: What is on Your Mind? 02-11-2020
13,002
Posted By RavinderSingh13
Thanks a TON Neo for awarding this to...
Thanks a TON Neo for awarding this to Scrutinizer, a well deserved award S :b:

@Scrutinizer, First of all congrats S :b: First thing first, your posts are Good, concise, Up to the mark, full of...
3,611
Posted By RavinderSingh13
Hello becal123456, IMHO problem in your code...
Hello becal123456,

IMHO problem in your code is that you haven't done any increment on very first occurrence of a[$2 FS $4 FS $5 FS $6 FS $7] and when it goes into condition check happens first...
3,611
Posted By RavinderSingh13
Hello beca123456, Could you please try...
Hello beca123456,

Could you please try following.


awk '/^grp1/{print;a[$2,$4,$5,$6,$7]++;next} !a[$2,$4,$5,$6,$7]++' Input_file


Output will be as follows.


grp1 name2 ...
11,432
Posted By RavinderSingh13
Hello hungryd, Could you please try...
Hello hungryd,

Could you please try following.


awk '
{
while(match($0,/<SeriesName>[^<]*/)){
print substr($0,RSTART+12,RLENGTH-12)
$0=substr($0,RSTART+RLENGTH)
}
}
' ...
Showing results 1 to 25 of 500

 
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy