Search Results

Search: Posts Made By: altamaha
2,644
Posted By altamaha
My example was not clear enough. I have 12000...
My example was not clear enough. I have 12000 rows in my user accounts, and I wish to replace any capitals in the 3rd field of any row with lowercase.

The 3rd field of the output file will be used...
2,644
Posted By altamaha
I spoke too soon Franklin. Your solution did work...
I spoke too soon Franklin. Your solution did work like a champ for record #2. I am trying to create a loop using your logic to assure that all records have lowercase in field 3.

#!/bin/bash...
2,644
Posted By altamaha
/usr/bin/nawk -F: 'NR==2{$3=tolower($3)}1'...
/usr/bin/nawk -F: 'NR==2{$3=tolower($3)}1' OFS=":" file > file2


works like a champ.

I was using sed -f scriptfile filetomod > outputfile to run multiple edits in a single pass and was just...
2,644
Posted By altamaha
Substituting Characters using SED
Can SED be used to substitute a character (y) with a character (Y) in a specified field?

File has 12000 : delimeted rows as;

HHC 1 BDE:Lastname, Firstname MI:firstname.mi.lastname@mil:SGT
HHC...
16,822
Posted By altamaha
Thank you era. That keen eye from herding cats...
Thank you era. That keen eye from herding cats has found the option for me.

The ip strings can be variable length within the octets as 111.111.111.111 or 111.11.1.11 and the -x option allowed me...
16,822
Posted By altamaha
Jim, I tried that one before posting, but...
Jim,

I tried that one before posting, but could never get it to give me the expected output. Maybe I did replace the variables in your code correctly. Also all three positions may not be fillled...
16,822
Posted By altamaha
Thanks Franklin.... just what I needed. I had to...
Thanks Franklin.... just what I needed. I had to use another version of grep to allow the -f to work.

/usr/xpg4/bin/grep -v -f $file2 $file1 > $file3

danmero,

I did search and came up with...
16,822
Posted By altamaha
Compare two files and output diff to third file
I have made several attempts to read two files of ip addresses and eliminate records from file1 that are in file2.

My latest attempt follows. Everything works except my file3 is exactly the same...
2,887
Posted By altamaha
:):b: Big cheezy grins from this side of the...
:):b:

Big cheezy grins from this side of the console. The -r was all that was needed to exclude special treatment of the \'s.
Now I can incorporate it into our log search tool and publish it for...
2,887
Posted By altamaha
Getting close now.... era grep `echo...
Getting close now.... era


grep `echo "$SearchCriteria" | sed -e 's/[][\\.*$^]/\\&/g'` $SearchFiles
found no results, not even the control record, which is what happened when I was trying sed.
...
2,887
Posted By altamaha
Thanks era. Yes, that is where I am stuck. I...
Thanks era.

Yes, that is where I am stuck. I guess my real question should have been "How do you make a literal from an ip or url string?" I have tried the following, but both of the sed's give...
2,887
Posted By altamaha
Unexpected Results (at least I did not expect them)
I have two sripts running in bash. The first one uncompresses log files and moves them to a working directory using uncompress -c and > output to new directory. It then creates one control record to...
3,140
Posted By altamaha
Thanks. The solution was to use the back tics...
Thanks. The solution was to use the back tics instead of the $( as suggested. The extra space in the example was an illusion produced by the font I guess, because it was not in the actual code.

I...
3,140
Posted By altamaha
Running a script with cron
I have the following script (trapsize) that checks a file size on my syslog server, and if the file is gt 6g, it will mail an alert to the admin for inspection. The following works like a champ when...
2,887
Posted By altamaha
era, You are right... useless now. At...
era,

You are right... useless now.

At the time I posted, I did not know how to get the data stream into the script. Since I had previously used a grep of the message log to create a temp file,...
2,887
Posted By altamaha
Many thanx. Using cat filename | sed...
Many thanx.

Using cat filename | sed 's/^\[//;s/\][^"]*"/ /;s/"$//' > filename2 gives me the exact output I was needing.

I will now try to see if I can place my "cut" and your "sed" into a...
2,887
Posted By altamaha
Need help cutting a couple of fields from log file.
Data begins as such;

Mar 16 03:27:05 afzpimdn01 named[221]: [ID 295310 daemon.notice] denied update from [1nn.nn.9].3983 for "nnn.nnn.in-addr.arpa" IN
Mar 16 03:27:37 afzpimdn01 named[221]: [ID...
Forum: Solaris 03-05-2008
8,115
Posted By altamaha
My bad... that is break using tip connection. ...
My bad... that is break using tip connection.

I have a Dell D510 laptop I use for console on my T2000 servers, and the break key is the Fn Pause/Break key and on another workstation it is the Ctrl...
Forum: Solaris 03-05-2008
8,115
Posted By altamaha
Try ~# if you are using vt100 emulation through...
Try ~# if you are using vt100 emulation through HT.
Forum: Cybersecurity 03-05-2008
10,894
Posted By altamaha
I tried to post this under the Dummies forum in...
I tried to post this under the Dummies forum in hopes of because it is actually more dumb than security, but I was shut down for double posting.

Now that I am willing to abide by the rules, and...
Forum: Cybersecurity 03-03-2008
10,894
Posted By altamaha
Thanx to both of you for your suggestions. I was...
Thanx to both of you for your suggestions. I was and am going to be using whatever we discover here as a learning tool to be applied across other directories where permissions need to be changed.
...
4,518
Posted By altamaha
Recursively changing permissions on files
Please excuse for double posting, but since this seems like a " yep, me dummy question", I feel I should post here.:o

Just joined after using the site as a guest.. (Very Good Stuff in here.....
Forum: Cybersecurity 02-29-2008
10,894
Posted By altamaha
Recursively find and change Permissions on Man pages
Just joined after using the site as a guest.. (Very Good Stuff in here.. thanks folks.)

I am in the process of hardening a Solaris 10 server using JASS. I also must use DISA Security Checklists...
Showing results 1 to 23 of 23

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