Search Results

Search: Posts Made By: Neo
Forum: Homework & Coursework Questions 14 Hours Ago
144
Posted By MadeInGermany
There is nothing wrong but a typo. -type f...
There is nothing wrong but a typo.
-type f shows files.
-type d shows directories.
\( -type f -o -type d \) shows both.
Assuming there are only files and directories, you can simply show...
312
Posted By RavinderSingh13
Hello sand1234, Here is the explanation of...
Hello sand1234,

Here is the explanation of it:

As you could see there are 2 %s written in printf which are connected to following.

%s -----> length($0)==80?ORS:""
%s -----> $0

1st one...
389
Posted By wisecracker
Because I quoted that you remove the zeros at...
Because I quoted that you remove the zeros at your own risk and did NOT put [:-4] at the end.
Again you remove those trailing zeros at YOUR OWN RISK, and that the middle one of your five results...
254
Posted By wisecracker
Calculate the constant e to 14+ decimal places using integer maths.
Hi guys...

I am loving this integer maths thing.
64 bit systems are certainly easier than 32 bit, but hey, I don't intend to leave out my fav' platform.
Using one of the 'Brothers' methods, URL...
Forum: What is on Your Mind? 1 Week Ago
370
Posted By RavinderSingh13
For me Dark Green color looks great :cool: :b: ...
For me Dark Green color looks great :cool: :b:
Thanks Neo for doing this.

Thanks,
R. Singh
Forum: What is on Your Mind? 1 Week Ago
370
Posted By Scrutinizer
Magenta, but slightly darker might be nice,...
Magenta, but slightly darker might be nice, maybe, or purple or dark orange, or mid green?

Example Dark Orange :
https://www.unix.com/members/302052697-albums87-picture1263.png
429
Posted By wisecracker
Q: Is SQRT(n) possible in a POSIX compliant shell? A: Yes within limits.
Hi all...
This is just a fun project to see if it is possible to get a square root of a positive integer from 1 to 9200000 to 6 decimal places on a 64 bit architecture machine.
It is coded around ...
309
Posted By MadeInGermany
You must capture a digit that is followed by a...
You must capture a digit that is followed by a space. Because all the matched part is substituted, you must put it back with \1 and \2 that refer to the 1st and 2nd \(capture group\).
sed 's/\(Oct\)...
309
Posted By RavinderSingh13
Hello akopocpoypoy, Could you please try...
Hello akopocpoypoy,

Could you please try following.

awk '
{
while(match($0,/Oct [0-9]+/)){
val=sprintf("%s %02d",substr($0,RSTART,4),substr($0,RSTART+3,RLENGTH-3))
sub(/Oct...
Forum: AIX 1 Week Ago
3,231
Posted By zxmaus
well I would like to add that you need to make...
well I would like to add that you need to make sure that you always always need to have enough real free memory to support the IOs your system needs to do. If you dont, your system will stop ALL work...
Forum: AIX 1 Week Ago
1,206
Posted By zxmaus
we are doing it on the root level without issues...
we are doing it on the root level without issues on vios 3.1.21 which essentially is AIX 7.2.3.3 including managing passwords. IBM does not care.
Forum: AIX 1 Week Ago
233
Posted By zxmaus
well endianness only matters for binary data not...
well endianness only matters for binary data not text data. If I understand you correctly you want to transfer text data only so that should work fine. If you however need something runnable you...
Forum: Shell Programming and Scripting 2 Weeks Ago
690
Posted By MadeInGermany
Some awk versions have a problem with parsing a...
Some awk versions have a problem with parsing a complicated FS.
The following variant takes a simple FS:
awk -v want="CITY,REGION,STREET" '
function prnsection() {
if (length(section)) {
...
487
Posted By RudiC
The logics are OK, but the syntax is not: - and...
The logics are OK, but the syntax is not:
- and is not a shell keyword; try -a (although deprecated)

- FILE_SIZE will not be expanded; use with $ sign

- > is being interpreted as an output...
563
Posted By RudiC
Please check your arithmetics for the SUM of...
Please check your arithmetics for the SUM of pat9.
I can't see where you comply with the specified weight of .25.


Tryawk -F, -vOFS=, '
NR == 1 {
$1 = sprintf ("%-25s", $1)
...
Forum: Cybersecurity 3 Weeks Ago
634
Posted By stomp
It maybe fail2ban is configured properly, up and...
It maybe fail2ban is configured properly, up and running. That will definitely explain a rate below average. But f2b can be running without being configured to do blocking at all or not correctly...
Forum: Cybersecurity 3 Weeks Ago
634
Posted By stomp
Same from receiving side. I also only just had a...
Same from receiving side. I also only just had a very quick read on your post.

Instead of one car crashing into a wall two cars crashing frontal into each other with the same speed do square...
Forum: Cybersecurity 3 Weeks Ago
634
Posted By stomp
@Neo: Thanks for rephrasing and clarifying your...
@Neo: Thanks for rephrasing and clarifying your request!

Here's a script which calculates the FLAPM value:


#!/bin/bash

exit_with_message() { echo "$*" ; exit 1 ;}

type lastb >/dev/null...
Forum: Cybersecurity 3 Weeks Ago
329
Posted By Corona688
It's an interesting example of how discredited...
It's an interesting example of how discredited programming methods get renamed to make them acceptable again.

Self-modifying code? Obviously bad and never allowed, at all, ever.
...
Forum: Cybersecurity 3 Weeks Ago
634
Posted By Corona688
Difficult to follow precisely without lastb, but...
Difficult to follow precisely without lastb, but grepping 'authentication failure' in log files, one of my servers has 66,000 failed logins since Sep 22, which is awfully close to your 15,000 a day. ...
Forum: Cybersecurity 3 Weeks Ago
329
Posted By gull04
Nice one Neo, Just seems to be missing the...
Nice one Neo,

Just seems to be missing the bit about taking a Cheese Grater to their knuckles;D

Regards

Gull04
Forum: Solaris 3 Weeks Ago
1,020
Posted By MadeInGermany
Actually the message is issued by a kernel driver...
Actually the message is issued by a kernel driver for the sctp network protocol.

SCTP (http://www.sctp.de/sctp.html)
SctpChannel (SCTP API )...
Forum: Shell Programming and Scripting 3 Weeks Ago
1,873
Posted By stomp
A short comment on debugging: To check if a...
A short comment on debugging:

To check if a function does what it should do, the easiest method is to simply put the function in a small extra program, call it with some valid test data and just...
986
Posted By gull04
Hi Neo, Our servers are nearly all...
Hi Neo,

Our servers are nearly all configured with NTP, but as part of the upgrade process on our RHEL estate we are also screwwing down the security so Chrony it is.

We recently had an Audit...
986
Posted By gull04
Hi Folks, I've been round the houses on...
Hi Folks,

I've been round the houses on this, the decision has been to change from NTP to Chrony. - due mainly to security concerns.

So here's a quick breakdown.

[root@fbakirpomd4 bin]#...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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