Search Results

Search: Posts Made By: u20sr
Forum: Solaris 01-05-2016
2,734
Posted By u20sr
Works perfectly - thanks.
Works perfectly - thanks.
Forum: Solaris 01-05-2016
2,734
Posted By u20sr
I can see commands with sudoreplay. However, some...
I can see commands with sudoreplay. However, some users are using a shell and I'm loosing the command history.

Luke's being sneaky and vader is playing nice in example below.


...
Forum: Solaris 01-05-2016
2,734
Posted By u20sr
Sudo -s restriction
Is there a way to stop users envoking a root shell with sudo on Solaris 10.

I want users to use sudo <cmd> but not sudo -s
2,112
Posted By u20sr
No - your solution was perfect. I didn't want...
No - your solution was perfect. I didn't want username.

Was just trying to understand why using FS = " " did not return:


11111
username
2,112
Posted By u20sr
Nice solution. Thanks. I understand that RS...
Nice solution. Thanks.

I understand that RS is setting a new line but why is username not printed?
2,112
Posted By u20sr
awk find and print next string
Can I do this in one awk session. Solution I have is poor.

I want to return the number after PID.


echo "Start: 12345 is used by PID:11111 username" | awk -F: '{print $3}' | awk '{print $1}'
1,167
Posted By u20sr
Ideal - worked a treat.
Ideal - worked a treat.
3,850
Posted By u20sr
LDAPSEARCH Return NULL User Attributes
Using ldapsearch to return entries from OID for specific attributes. However, if an attribute is null the field value is not returned.

Is there anyway to force ldap to return field names in all...
1,167
Posted By u20sr
awk Flat File Conversion Script
In awk how would I flatten input.txt to output.txt?

Input:

givenname: Darth
sn: Vadar
mail: d.vadar@deathstar.com
uid: dv12345
orclguid: 1234567890

givenname: Carlito
sn: Brigante...
9,537
Posted By u20sr
Not quite but I can see where you're going. I'll...
Not quite but I can see where you're going. I'll play about with it a bit.


Source_Name Problem_Name Hash
102030 102030 BEE77DA5BE9F24FBE044002128B2E77C
...
9,537
Posted By u20sr
Almost, 102040 should line up with 102080. ...
Almost, 102040 should line up with 102080.


Source_Name Problem_Name Hash
102030 102080 BEE77DA5BE9F24FBE044002128B2E77C
102040 BEE77DA5BE9F24FBE044002128B2E77C


Maybe...
9,537
Posted By u20sr
Struggling to obtain the correct output format. ...
Struggling to obtain the correct output format.

What I want is (problem name and hash values should line up):

Source_Name Problem_Name Hash
102030 102080 ...
9,537
Posted By u20sr
Thank you. Was struggling with syntax. If...
Thank you. Was struggling with syntax.

If you don't initialise v it means loops through all records.


for ( v in SRC )
9,537
Posted By u20sr
Agreed - stupid example. Was trying to make it...
Agreed - stupid example. Was trying to make it simple.

Real world - we have two arrays (source & comparison). What I want is for each source index element value return all the element matching...
9,537
Posted By u20sr
awk Search Array Element Return Index
Can you search AWK array elements and return each index value for that element.

For example an array named car would have index make and element engine. I want to return all makes with engine...
1,490
Posted By u20sr
SU and Standard Output
Bit of a strange one.

Have a script called rapidclone_test.sh which calls Oracle rapidclone using su -c as an oracle osuser. However, if I control+c out to the calling shell anything entered is...
2,101
Posted By u20sr
Extremely helpful - much appreciated.
Extremely helpful - much appreciated.
2,101
Posted By u20sr
Working flawless. Running time is under a second....
Working flawless. Running time is under a second.

Thank you.

I can see the barebones logic but struggling a bit with the syntax. Could you explain a bit more what the lines are actually...
2,101
Posted By u20sr
don_cragun : Good point. These should be sent to...
don_cragun : Good point. These should be sent to a file - something like no_results.out

Also, if there is a null returned after the = in file2 then this should be sent to no_gud.out
2,101
Posted By u20sr
Slow Running Script (Reading 8000 lines)
Slow runnin script. The problem seems to be the sed calls.
In summary the script reads list of users in file1. For each
username search two files (file 1 & file2) for the username
and get the...
1,880
Posted By u20sr
What an idiot! Appreciate patience - works...
What an idiot!

Appreciate patience - works perfectly.

---------- Post updated at 03:14 PM ---------- Previous update was at 02:57 PM ----------

Can I make it a bit more complex. Same logic...
1,880
Posted By u20sr
Spot on SunOS vq97eda 5.10 Generic_147440-19...
Spot on SunOS vq97eda 5.10 Generic_147440-19 sun4v sparc sun4v.

Almost there.


> cat file1
user1
user2
> cat file2
name=user1
gud=123456
name=user2
gud=987654
name=user4...
1,880
Posted By u20sr
Thanks for that. All I seem to get is blank...
Thanks for that.

All I seem to get is blank lines though?
1,880
Posted By u20sr
awk Pattern Match One File to Another
I want to read from file 1 and pattern match in file two and print field two from the next line.

File 1:

user1
user2
user3


File 2:

name=user1
gud=12345
name=user2
gud=32456

...
Showing results 1 to 24 of 24

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