Search Results

Search: Posts Made By: wisecracker
Forum: OS X (Apple) 1 Day Ago
174
Posted By Neo
Thanks so much for posting these kinds of...
Thanks so much for posting these kinds of projects. I wish everyone would do this, regardless of their skill level. Sharing is the operative word these days.

On a similar note:

In 2020, I...
277
Posted By RudiC
Or printf "%s%0*d\n" ${X} $((9-${#X})) 0 ...
Or
printf "%s%0*d\n" ${X} $((9-${#X})) 0
245700000
printf "%s%0$((9-${#X}))d\n" ${X}
245700000
277
Posted By Aia
One way in Bash could be: n=$(printf "%-9s"...
One way in Bash could be:
n=$(printf "%-9s" 2457)
printf "%s\n" ${n// /0}
245700000
365
Posted By RudiC
Nice approach indeed! Could be curtailed to ...
Nice approach indeed!
Could be curtailed to
sed -r "/'($(paste -sd\| file2))'/s/^C//" file1, including the item list file as well.
365
Posted By rbatte1
One line sed option
How about using a single line sed like this:-sed "s/^C\( CALL.*'\(Gmax\|Gmin\|HS10\|HS2\|HS9\|Hmax\)'.*\)/\1/" source_file_name > target_file_name

It's a little messy to read, so:-

The s...
478
Posted By rbatte1
I'd be very worried by this approach. You are...
I'd be very worried by this approach. You are inviting someone to put something dangerous in a file and mentioning that as a parameter and then you will call/run that unrestricted code to control...
Forum: What is on Your Mind? 2 Weeks Ago
151
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...
750
Posted By Aia
Print count of case insensitive pattern /it/ ...
Print count of case insensitive pattern /it/
echo "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness..." |
perl -nle '$c+=()=/it/gi;...
Forum: What is on Your Mind? 3 Weeks Ago
604
Posted By zxmaus
I pass on this one. My brain is not made for...
I pass on this one. My brain is not made for programming. Though I think I can handle pretty much everything else pretty well, and I am now nearing 34 years working in various fields in IT, I just...
Forum: What is on Your Mind? 3 Weeks Ago
604
Posted By Neo
Merry Christmas, Yes, and also to note -...
Merry Christmas,

Yes, and also to note - learning to program a computer does not guarantee you will be wise or develop a deeper understanding of life, physics, sciences, cultures and peoples.
...
Forum: What is on Your Mind? 3 Weeks Ago
604
Posted By vbe
Merry Xmas!
Merry Xmas!
Forum: Programming 3 Weeks Ago
783
Posted By Neo
Arduino-cli - Uploading to Unknown Chinese Arduino Boards using the Arduino Command Line Interface
In my further exploration of Arduino, today I decided to install the arduino-cli (https://github.com/arduino/arduino-cli)on my mac today.

https://github.com/arduino/arduino-cli

I followed...
Forum: What is on Your Mind? 3 Weeks Ago
135
Posted By Neo
Thank you Ravinder. I wish everyone a very...
Thank you Ravinder.

I wish everyone a very safe, healthy and happy holiday season with loved ones.

7938
Forum: What is on Your Mind? 3 Weeks Ago
135
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
675
Posted By nezabudka
maybe this is very redundant for such task, but...
maybe this is very redundant for such task,
but maybe this will anticipate possible problems with more complex input
This instance with integrated version control :) requires gnu awk
awk '
NR ==...
Forum: Programming 3 Weeks Ago
904
Posted By Neo
OBTW, today bought the SIM5360E 3G Shield...
OBTW, today bought the SIM5360E 3G Shield (https://www.elecrow.com/wiki/index.php?title=SIM5360E_3G_Shield)

https://www.elecrow.com/wiki/index.php?title=SIM5360E_3G_Shield

Yesterday, I bought a...
Forum: Programming 3 Weeks Ago
904
Posted By Neo
Thanks! Merry Christmas! I have so...
Thanks!

Merry Christmas!

I have so much Arduino-related orders on the way from AliExpress, it should be a crime!

If I knew Arduino was this much fun, I would have started years ago!
Forum: What is on Your Mind? 4 Weeks Ago
266
Posted By Neo
Now, you have identified the core reason why...
Now, you have identified the core reason why people must "fall for the illusion" of the benefits of these kinds of technologies versus beware of them.

Society, as a whole, penalizes us when we...
Forum: What is on Your Mind? 4 Weeks Ago
266
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? 4 Weeks Ago
266
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...
Forum: Programming 4 Weeks Ago
1,760
Posted By Neo
OK. Well, this just about concludes my first...
OK.

Well, this just about concludes my first test on a "cheap" Chinese Uno board from AliExpress. To summarize lessons learned:


The Arduino IDE installs easily and works great on my Mac...
Forum: Shell Programming and Scripting 4 Weeks Ago
832
Posted By MadeInGermany
[Tip] A better echo
Often it has been said that echo is neither portable nor correct.
Here is an input.txt:

line1
line2
-n
line4
-en
line6
-x
line8
Then the following fails with BSD/Linux/bash:

while IFS=...
1,229
Posted By DevuanFan
I solved this with an environmental variable: ...
I solved this with an environmental variable:

export G_FILENAME_ENCODING=UTF-8

Putting it in my ~/.profile makes it permanent.

I figured this out when I stumbled into section 81.2 here:...
887
Posted By RudiC
Here you are: awk ' !(a[$1]) {a[$1]=$0...
Here you are:
awk '
!(a[$1]) {a[$1]=$0 # if array element indexed by $1 is unset or 0, set it to
# the line (i.e....
Forum: What is on Your Mind? 11-28-2019
1,367
Posted By Neo
Please Welcome Simon Sweetman (Chubler_XL) to the Moderator Team
Happy Thanksgiving Holidays,

Today, I am happy to welcome Simon Sweetman (Chubler_XL) (https://www.unix.com/member_modal.php?u=302085178) to the Moderation Team to help provide us some important...
Showing results 1 to 25 of 500

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