Search Results

Search: Posts Made By: MadeInGermany
277
Posted By RudiC
@MadeInGermany: Wouldn't that print $0 twice,...
@MadeInGermany: Wouldn't that print $0 twice, once for each of the conditions?
152
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'...
152
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) 5 Days Ago
278
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? 1 Week Ago
3,721
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...
319
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
319
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
433
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? 3 Weeks Ago
154
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? 3 Weeks Ago
154
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...
Forum: Shell Programming and Scripting 3 Weeks Ago
794
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...
674
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? 4 Weeks Ago
138
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? 4 Weeks Ago
138
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
1,680
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
1,680
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...
784
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...
886
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...
898
Posted By stomp
Even if it does not directly help in this case,...
Even if it does not directly help in this case, I'd like to mention Linux Audit, because it's really interesting:

One can audit all commands entered by anyone with these 2 rules:


auditctl -a...
898
Posted By Scrutinizer
In for some golf :) ? awk '{$1=A[i=$1];...
In for some golf :) ?
awk '{$1=A[i=$1]; A[i]=$0} END{for(i in A) print i A[i]}' FS="\t" OFS="\t" A.txt
953
Posted By foad
Using external programs (such as cut,...
Using external programs (such as cut, *grep,sed,awk or others) are a dire waste of precious resources as well as processes.







It is not clear what the two revs should accomplish, except...
2,130
Posted By RudiC
There seems to be a mixup between shell globs and...
There seems to be a mixup between shell globs and grep / regex patterns. Try grep 'body.*.xml'.


Or, recent bashes provide "extended pattern matching" if the extglob shell option is set:
shopt...
893
Posted By Scrutinizer
That is the case with sed, but with awk it can be...
That is the case with sed, but with awk it can be on the same line.

$ printf '1 2\n2 3\n3 4\n' | sed -n '/1/,/2/p'
1 2
2 3

$ printf '1 2\n2 3\n3 4\n' | awk '/1/,/2/'
1 2
640
Posted By gull04
Hi, I see that you are trying to connect to...
Hi,

I see that you are trying to connect to the system through the ILOM.console connection, this is normally for mainenance/initial configuration only and all other instances you would connect to...
109
Posted By Scrutinizer
Hi, On Solaris 9 this probably should work...
Hi,

On Solaris 9 this probably should work too (depending on the shell which you did not specify), try:
alias dutop10='\du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2...
Showing results 1 to 25 of 491

 

Featured Tech Videos

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