Search Results

Search: Posts Made By: staze
8,049
Posted By staze
okay, whatever. figured I might learn some...
okay, whatever.

figured I might learn some regex in the process, but I'll just do it the PHP way and be done with it.

Thanks, I suppose.

---------- Post updated at 12:10 PM ----------...
8,049
Posted By staze
Follow up question...
So, now that that's working, here's another one.

Assuming I have "username", and "REALM", can anyone think of a good way to turn this:

...
8,049
Posted By staze
Wow, great. So, the first one to remove the...
Wow, great.

So, the first one to remove the line breaks works great. The second one, which removes the chunk, doesn't seem to work. The resulting output is significantly truncated (it seems to be...
8,049
Posted By staze
So, the output would look like this... Don't...
So, the output would look like this...

Don't much care how we get there.

# username, users, example.com
dn: uid=username,cn=users,dc=example,dc=com
objectClass: inetOrgPerson
objectClass:...
8,049
Posted By staze
remove chunks of text from file
All,

So, I have an ldif file that contains about 6500 users worth of data. Some users have a block of text I'd like to remove, while some don't.

Example (block of text in question is the...
2,985
Posted By staze
yeah, I figured out id was outputting the "no...
yeah, I figured out id was outputting the "no such user" to stderr just a moment ago.

Your suggestion worked brilliantly.

Thanks!

---------- Post updated at 08:40 PM ---------- Previous...
2,985
Posted By staze
Assigning variable from command outputs to shell
First, this is bash (3.2.17), on a Mac, 10.5.7.

What I'm trying to do is look at a list of users, and check to see if each exists. If they do, do some more stuff, if they don't, drop them into an...
Showing results 1 to 7 of 7

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