Hi,
I have a large file containing lots of data, however, I want to do the following;
Find any lines containing the pattern cn=
and join this line to the preceeding line (same as shift J in vi)- if that makes sense?
Hi,
I'm not an expert in AWK, but I've been advised awk could help with this problem...
I have the following file I'd been trying to merge with SQL within a database, basically, I've had to merge AD users and group information, which in SQL is not an issue. However, it's producing me output...
Hi,
I need to create a script that will figure out the deltas between two files e.g. yesterdays csv and todays csv; and write the delta to a new file... the unique key for the script would be $80 in the file...
So I have something like this as input;
yesterday
name, address, dob....snn
name1...
Hi,
I've written the following code to compare 2 csvs,
awk 'NR==FNR{_[NR]=$0}
NR!=FNR{
if($0 != _[FNR])
{
print $0
}
}' export1.csv export2.csv
But I need to extend it (as it really only offers diff capabilities) to compare based on some unique ID e.g...
Hi,
I need to create a file to add 300000 users to a directory server. The input should look like this;
Objectclass: User
DN: CN=[XXX123],OU=newaccounts,DC=domain,dc=com
CN: XXX123
userAccountControl: 66080.
sAMAccountName: XXX123
userPrincipalName: xxx123@domain.com
I need to create a file...
Hi -
Is it possible to have SMTP over TLS with mutual authentication using certificates on Exchange 2003?
And if so, how? I am stuck on the Mutual Authentication piece.
Stu
Hi
I am getting this message for all users I am trying to set up in a lab.
user@external.com on 10/23/2006 4:02 PM
You do not have permission to send to this recipient. For assistance, contact your system administrator.
<FQDN (internal) #5.7.1 smtp;550 5.7.1...
Hi,
I am seeing some strange behavior on our hardened build when installing some software, which I think are permissions based errors.
I have used lsof & truss to see what the problem might be, does anyone else know the best way to see what file/perms are causing a process to fails?
DC
Hi,
I am seeing some strange behavior on our hardened build when installing some software, which I think are permissions based errors.
I have used lsof & truss to see what the problem might be, does anyone else know the best way to see what file/perms are causing a process to fails?
DC
Hi,
I need to comment the following line in /etc/hosts using sed,
12.9.9.0 host.internal.com host
How is this possible? For me, I cannot do a replace of 12.9.9.0 as this is not unique within hosts.
Any Ideas?
Hi,
I need to find a line in a log file, then match the line 3 lines below;
For example, here is my input;
object: Test
id: 32190-12391-12984134-22
Name: Blah
Desc: This is the description
Type: 111-22912-12832
AttrId: 0
I want to match the line;
object: Test
Then match the line
Name...
Hi,
Does anyone know the max ulimit you can have on a solaris system.
Default is 1024 for user, however, if I need to over ride this & have an rlim_fd_max in /ect/system - what is largest I can have?
Hi,
I am writing a sed script to perform a task.
However, one of the lines I want to modify has 2 matches in the file.
How can I specify I only want to modify the second occurance?
Hi,
I am writing a script ( start & kill ) for an application. When I test this as follows;
cd /etc/init.d
./Sapp98 start
It works fine but does not put the job in the background - i.e the job remains in the foreground;
Here is the script...
Hi,
I need to find a certain line is a properties file, and echo some parameters after this point.
the echo part is fine, however, how do I tell echo to start at a certain point in a text file?
e.g.
find the <Object="new"> line and echo the following JUST below;
echo <Object="new1">
then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.