Search Results

Search: Posts Made By: MadeInGermany
Forum: What is on Your Mind? 3 Days Ago
134
Posted By wisecracker
Toshiba’s Optimization Algorithm Sets Speed Record for Solving Combinatorial Problems.
Enjoy...

'https://spectrum.ieee.org/tech-talk/computing/software/toshiba--optimization-algorithm-speed-record-combinatorial-problems'

Copy and paste URL less single quotes...
Forum: Linux 6 Days Ago
295
Posted By Chubler_XL
What value do you have for swappiness...
What value do you have for swappiness (https://en.wikipedia.org/wiki/Paging#Swappiness):

# cat /proc/sys/vm/swappiness
60


You can try tweaking this back a lower percentage (eg add/change...
Forum: What is on Your Mind? 2 Weeks Ago
504
Posted By wisecracker
The worlds first classical Chinese program language.
WOW, just WOW...

It would be mighty interesting to see shell code translated to this. Kudos to the young guy who succeeded...
...
662
Posted By Peasant
Tip: inotify cron
Dear members, moderators and others.

While working on <insert project>, a need has surfaced to watch a directory, and when a file comes, to do appropriate action.
So, i started writing some...
566
Posted By Chubler_XL
This is because commands within a pipeline are...
This is because commands within a pipeline are run in subshells so the read statement is setting the variables is a subshell which has not impact on the main shell.

You can achieve what you want...
Forum: Web Development 3 Weeks Ago
1,621
Posted By Akshay Hegde
You should now options enabled in your server...
You should now options enabled in your server endpoint, I used in past with nextcloud (https://docs.nextcloud.com/server/latest/user_manual/files/access_webdav.html)

Below few are examples, for...
Forum: Shell Programming and Scripting 3 Weeks Ago
240
Posted By nezabudka
It’s interesting that on "zsh" it works
It’s interesting that on "zsh" it works
Forum: Shell Programming and Scripting 4 Weeks Ago
876
Posted By RudiC
@MadeInGermany: Wouldn't that print $0 twice,...
@MadeInGermany: Wouldn't that print $0 twice, once for each of the conditions?
588
Posted By Scrutinizer
Not sure what you are looking for. You could pipe...
Not sure what you are looking for. You could pipe the result into a while-read loop and use shell variables to compose your command.

jq -r '.name + ";" + .description'...
588
Posted By Scrutinizer
Try: jq -r '.description' -- It is best to...
Try: jq -r '.description'

--
It is best to put quotes around variable expansions:
echo "$vulnerabilities"

--
You do not need the intermediate step, you could also do this:
jq -r...
Forum: OS X (Apple) 01-18-2020
829
Posted By wisecracker
Generate a random number in a fully POSIX compliant shell, 'dash'...
Hi all...
Apologies for any typos, etc...
This took a while but it didn't beat me...

Although there are many methods of generating random numbers in a POSIX shell this uses integer maths and a...
Forum: What is on Your Mind? 01-11-2020
4,415
Posted By drl
Hi. Yeah, late. Searched for logo q1 or...
Hi.

Yeah, late.

Searched for logo q1 or o1 or 01, and followed links to images (old-fashioned footwork).

It could be either PPM, a tape manufacturer, or the outfit that designed the logo for...
664
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
664
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
687
Posted By nezabudka
Hi If there are multiple files should be used ;...
Hi
If there are multiple files should be used ; nextfile instead ; exit
Forum: What is on Your Mind? 01-01-2020
174
Posted By Neo
2020 - Such a great year for everyone is here! ...
2020 - Such a great year for everyone is here! Live long and prosper!

7952
Forum: What is on Your Mind? 01-01-2020
174
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...
1,326
Posted By nezabudka
Hi look at this way declare -i...
Hi
look at this way
declare -i AnzahlUeberstunden
AnzahlUeberstunden=$(date -d "$JAHR-$MONAT-$TAG $ArbeitEnde" +%s)-$(date -d "$JAHR-$MONAT-$TAG $NormalesArbeitsEnde" +%s) #"tags" are not needed...
922
Posted By jim mcnamara
MicroFocus COBOL is your very best ORACLE option....
MicroFocus COBOL is your very best ORACLE option. It specializes in supporting ORACLE db's. It also is highly compatible with mainframe COBOL.
This will be the relatively easy part, moving code...
Forum: What is on Your Mind? 12-25-2019
176
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? 12-24-2019
176
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
Forum: Solaris 12-19-2019
2,497
Posted By Michele31416
OK, I'm glad I asked then. So I have to mount...
OK, I'm glad I asked then. So I have to mount the /bkpool disk in the LDOM as an NFS share? Can you give me a pointer on how to do that? Is this what Oracle calls "virtual disk multipathing"? ...
Forum: Solaris 12-19-2019
2,497
Posted By hicksd8
One thing for sure is that only one of the nodes...
One thing for sure is that only one of the nodes (Solaris 11 Global or Solaris 10 LDOM) can have control of the volume. In any situation, having two operating systems writing to a volume...
1,320
Posted By Scrutinizer
Hi, the reason that the script is so slow, is...
Hi, the reason that the script is so slow, is that it is firing off 12 different sub shells per line in the input file, so that is 12 million sub shells in total, which is quite costly.
Examples of...
1,423
Posted By Scrutinizer
Hi MadeInGermany, Can't you use: echo_e()...
Hi MadeInGermany,

Can't you use:
echo_e() {
printf "%b\n" "$*"
}

Instead?

The use of "$*" means that this only works as long as IFS is at the default:

$ IFS=,
$ echo -e "a\nb" c d...
Showing results 1 to 25 of 498

 

Featured Tech Videos

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