Search Results

Search: Posts Made By: prvnrk
6,972
Posted By MadeInGermany
To avoid an initial newline one can test for NR>1...
To avoid an initial newline one can test for NR>1 or del==1:
awk '/^Answer:/{del=1} (del==1 && /^NO\./){del=0; print ""} del==0' test.txt
Here comes a portable sed solution:
sed '/^Answer:/{
...
Forum: AIX 11-04-2019
16,676
Posted By zxmaus
I have not worked with RBAC ever, so all is just...
I have not worked with RBAC ever, so all is just guessing, but I think that is your issue here. Can you find out if the root user is actually allowed in RBAC to set ACLs? If he is not, add that...
Forum: Cybersecurity 11-04-2019
21,591
Posted By Neo
Did you have any luck with Google? What were...
Did you have any luck with Google?

What were the results of your searches?
Forum: AIX 11-03-2019
16,676
Posted By zxmaus
do you have rbac enabled ? try to put user and...
do you have rbac enabled ?
try to put user and group into the same line
permit r-- u:splunk, g:splunk
8,795
Posted By RudiC
NA was not specified. Try awk -F/ ' NR == 1 ...
NA was not specified. Try
awk -F/ '
NR == 1 {printf "Sl#,VideoName,BitRate"
}
FNR == NR {PRM[NR] = "( |no-)" $0 "=*[^ /]*"
MX = NR
...
8,795
Posted By RudiC
Try awk -F/ ' NR == 1 {printf...
Try
awk -F/ '
NR == 1 {printf "Sl#,VideoName,BitRate"
}
FNR == NR {PRM[NR] = "( |no-)" $0 "=*[^ /]*"
MX = NR
printf ",%s", $0
...
Forum: Solaris 08-13-2019
27,255
Posted By gull04
Hi hicksd8, I think that you might be able...
Hi hicksd8,

I think that you might be able to get away with that, you'd have to check some other stuff out incase you make it worse I think.

You could check that the disks are all available...
Forum: Solaris 08-13-2019
27,255
Posted By hicksd8
Hmmmmm........the fact that you can post the...
Hmmmmm........the fact that you can post the output that you have seems to indicate that the system is "on its feet" but the mirrors need maintenance because although your storage team migrated the...
Forum: Solaris 08-13-2019
27,255
Posted By gull04
HI, You've stated that the storage team did...
HI,

You've stated that the storage team did the migration of IBM Storage to Nimble storage, I'm guessing that that is where the problem lies. Or there could be issues with the vpath software and...
Forum: Solaris 08-07-2019
29,904
Posted By hicksd8
My approach would be to ensure that you know how...
My approach would be to ensure that you know how to restore the root partition easily if it goes wrong. Use fssnap followed by ufsdump to dump the snapshot. If you are in anyway unsure about how to...
Forum: Solaris 08-07-2019
29,904
Posted By Neo
It's probably best to (1) unmount all filesystems...
It's probably best to (1) unmount all filesystems which are not going to receive any upgraded bits and (2) take full back-ups of all filesystems (as hicksd8 mentioned) effected by the upgrade before...
Forum: Solaris 08-07-2019
29,904
Posted By hicksd8
Firstly, the mirrors are created with SVM...
Firstly, the mirrors are created with SVM (Solaris Volume Manager) rather than by a hardware RAID controller. So why are you thinking of breaking the mirror? How is the machine usually backed up? ...
20,798
Posted By Neo
Maybe you can move off Window's based CygWin and...
Maybe you can move off Window's based CygWin and on to a real unix-like operating system :)

From the CygWin site:





If you truly want full gcc capability, move to Linux and off Windows...
20,798
Posted By jim mcnamara
Let's check your compiler: Can you compile a...
Let's check your compiler:
Can you compile a hello world program?
Use this example code:


#include <iostream>
using namespace std;
int main()
{
cout << "Hello,...
7,201
Posted By MadeInGermany
Even the shell becones faster if builtins are...
Even the shell becones faster if builtins are used: let the read command read the fields into variables, use $(( )) rather than expr, write the output file in one stream.
# set constants before the...
7,201
Posted By RudiC
Three comments on Peasant's fine proposal: -...
Three comments on Peasant's fine proposal:
- not all awk versions provide strftime(); gawk may be required.
- calling strftime() without a time stamp will return the system time; insert $1 for the...
7,201
Posted By Peasant
Try this, save it as into file small.awk ...
Try this, save it as into file small.awk

BEGIN {
FS=","
OFS=";"
}
{
$1=strftime("%Y-%m-%d %H:%M:%S")
$2=86400
print $1,$2,$7,$3,$4,$5,$6,$NF
}


Run as :
awk -f small.awk test1 >...
4,356
Posted By RudiC
It should not differentiate between small and...
It should not differentiate between small and large files. Do you have structural differences in the large files? Mayhap DOS line terminators (^M = <CR> = \r = 0x0D)? How are those files created?
4,356
Posted By vgersh99
how about: awk '/^[[]Event/ {e=$0;next}...
how about:

awk '/^[[]Event/ {e=$0;next} /O-O-O/ {print e ORS $0}' RS= ORS='\n\n' myFile
Forum: Red Hat 09-09-2018
11,606
Posted By Peasant
Build from scratch. OUI installer has a nice...
Build from scratch.
OUI installer has a nice feature, called response file.

If your environments are the same or similar, it will magically install everything without hours of clicking in those...
Forum: Red Hat 09-08-2018
11,606
Posted By Neo
In the future, I recommend you do these kind of...
In the future, I recommend you do these kind of serious database upgrades on a development server first:

installing "oracle-database-server-12cR2-preinstall-1.0-3.el7.x86_64.rpm"

Now that you...
5,699
Posted By Chubler_XL
You could try this awk solution: awk '{print...
You could try this awk solution:

awk '{print $2} NR==1' RS={ FS="}" ORS= infile

or using sed:

sed ':loop;$!N;$!b loop; :d; s/{[^{}]*}//g; t d' infile
1,435
Posted By RudiC
Try also awk ' /^LUN/ {LUN = $0 ...
Try also
awk '
/^LUN/ {LUN = $0
next
}
/round-robin/ {RRO = $0
next
}
/failed/ {if (LUN) print LUN
...
1,435
Posted By RavinderSingh13
Hello prvnrk, Could you please try following...
Hello prvnrk,

Could you please try following and let me know if this helps you.

awk '/^LUN/{flag=1;if(flag && non_flag){print val};val=flag=non_flag=""} /failed/{non_flag=1} {val=val?val ORS...
3,320
Posted By Don Cragun
I don't have ffmpeg installed on my system. What...
I don't have ffmpeg installed on my system. What does the final hyphen in the command:
ffmpeg -i "${FILE_NAME1}.aac" -f caf -
tell ffmpeg to do? With many utilities, that would be a request to...
Showing results 1 to 25 of 39

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