Search Results

Search: Posts Made By: dlundwall
1,105
Posted By dlundwall
Thank you!!
Thank you so much for taking the time to respond. I will try out the awk code and see how it works.

Thanks again!!!!

---------- Post updated at 11:32 AM ---------- Previous update was at...
1,105
Posted By dlundwall
Understood. Here is the complete xml code: ...
Understood. Here is the complete xml code:

<?xml version="1.0"?>
<GroupList>
<Group version="1.0.0">
<ID>39060</ID>
<IsAlso>
<IsA name="SyncableGroup" rootURL="syncablegroup"/>
...
1,105
Posted By dlundwall
Script to group XML entries?
Hello all, If I wanted to take an xml file as INPUT to a script to pull information from it how do you group things together? Here is what I am trying to do:

In the xml file you have:

<Group...
1,821
Posted By dlundwall
Show all my Posts?
Hello,
Is there a way to display all of the posts I have authored?

Many thanks in advance.
8,997
Posted By dlundwall
MY Actual script output is different???
First and foremost, thank you for all the time you are putting into helping me! I am not the best scripter (I know, it's quite obvious)!!

Here is the code I used. Note, I am including...
8,997
Posted By dlundwall
sed error: invalid reference
Hello all,
I am using sed to parse a particular part of a string and am having problems. I am getting the following error:
sed: -e expression #1, char 28: invalid reference \1 on `s' command's RHS...
2,958
Posted By dlundwall
sed Error using the syntax provided
When using the above code I am getting an error. First, here is the code I used taken from what you gave me earlier:
echo "Alarm SET:"
echo ""
echo "Date: " $DATE
echo "Time: ...
1,104
Posted By dlundwall
One Modification
The code that you sent worked perfectly!!! Thanks!!!

My only other question is, How would I bring JUST THE NUMBER in? So instead of the output:
Request/Incident 20085
I would like simply:...
1,104
Posted By dlundwall
Displaying certain text in a msg.
I have a requirement to display a part of an html response that my application gets. The response looks like this:

<html><a href='com.aprisma.spectrum.app.sd.client.SDHyperlinkHandler'...
2,958
Posted By dlundwall
Let's see if I get it right
Maybe it would be easier if I started from the beginning... I think I may have confused the issue big time.

There is a directory on my server that has 40K+ files in it. If you opened up the...
2,958
Posted By dlundwall
Answers to your questions.
First question: I would want to know how to pull out any of the alert attributes, say Severity: Critical or Alert Code: Danger.

So I guess the actual data of "Danger" or "Critical" is what I am...
2,958
Posted By dlundwall
Example which may help...
let me see if I can supply what you are asking for:

Here is a sample of an event message file:
{d "%w- %d %m-, %Y - %T"} - Device {m} of type {t} is no longer responding to requests. This...
2,958
Posted By dlundwall
$EVENTMSG details
Thanks for your immediate response!!

To answer your question, the $EVENTMSG could look like some 40,000 different messages taken directly from 40,000 Event files.

There is one part in every...
2,958
Posted By dlundwall
Parsing a $VARIABLE within a script.
Hello all,

I have a situation where I need to parse for certain items from a $VARIABLE within a sh script.


The sh script is run when an alert comes in.
The alert data payload has a...
1,141
Posted By dlundwall
How do you check for a particular string in 1000's of files?
Please forgive my ignorance on scripting. I am trying to determine (via a script) if a certain string of characters is present . The string that I am looking for is a constant length.

Here is the...
2,842
Posted By dlundwall
Is there a way to check to see if a file ALREADY...
Is there a way to check to see if a file ALREADY has the additional line in it so that it doesn't add another line?
2,842
Posted By dlundwall
THANKS!!!
THANK YOU SO MUCH FOR HELPING ME OUT!!! :D
2,842
Posted By dlundwall
I'm elated!!! It worked!!!
Boy... that simple find command did EXACTLY what I needed!!!!

Many many thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

:):):):):):):):):):)

---------- Post updated at 03:13 PM ---------- Previous...
2,842
Posted By dlundwall
Additional info...
Sorry about not trying it.... I just took the first suggestion and went with it.
Follow up Question for you:
Can your method be placed in a script so that I can use a loop function, or will the...
2,842
Posted By dlundwall
I'm assuming I can put this line in a script so...
I'm assuming I can put this line in a script so it might look like:

#!/bin/sh

# read files
cat ${WORKFILE} | while read file
do
sed 's/}/}Model_Type={t}, ModelName={m}/1' $file
done
...
2,842
Posted By dlundwall
Adding a line to 1000's of files right after x amt of characters.
I am trying to add a single line of text to every file in a particular folder. There are thousands of files in the folder.

Each file contains this same start of the first line:
{d "%w- %d %m-,...
Showing results 1 to 21 of 21

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