Sponsored Content
Top Forums Shell Programming and Scripting Find and update line in xml file Post 302921970 by brichigo on Tuesday 21st of October 2014 11:24:12 AM
Old 10-21-2014
Thanks Ravinder! I will try this and will let you know if it helps.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl: update lastmod in xml file

I'm trying to write a perl script that I can run as a cron job in root of my web server that will look for .shtml files get their last modified date and replace it in the sitemap_test.xml file. the problem is the substitution doesn't work and when I print to MYFILE it adds the lastmod to the end of... (3 Replies)
Discussion started by: skilodge
3 Replies

2. Shell Programming and Scripting

How to find spaces and update values on the same line.

Dear all, I'm trying to write a script where: A file contains more or less 2000 lines. To some of those lines, in a specific position, let's say 89-92 there are spaces. So, this script should find these spaces on specific position and update a value (from 2 to 1) to another position of the... (4 Replies)
Discussion started by: paniklas
4 Replies

3. Shell Programming and Scripting

perl script to update a xml file

Hi experts, I have a set of xml files in folder which has the below field. <mm:sessionID>157.235.206.12900397BE4:A</mm:sessionID>, I need to update this field regularly with new session id, which I have it from a login file. Can anyone tell me how to add a new value in <mm:sessionID>... (3 Replies)
Discussion started by: amvarma77
3 Replies

4. Shell Programming and Scripting

Find/Replace in XML file

I am not sure how to approach this find/replace using a shell script. Any help or guidance appreciated. I want to find this: <objects/> <thumb>thumb_0001.jpg</thumb> <preview>preview_0001.jpg</preview> And replace with something like this: <objects>... (1 Reply)
Discussion started by: jimraynor
1 Replies

5. Shell Programming and Scripting

Find Node and replace line(s) preceding in xml file

Hello, I have an xml file whose contacts are like below: <Node>Apple <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Mango <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Apple <B>Value1</B> <B>Value2</B> <B>Value3</B> </Node> <Node>Bannana (3 Replies)
Discussion started by: umarsatti
3 Replies

6. Shell Programming and Scripting

Find out special characters from xml file

Hi....I have a xml file which is having lots of special characters which I need to find out and put the distinct list of those into a text file. The list of special characters is not specific, it can be anything at different point of time. Can anyone help me to find out the same and list out? ... (10 Replies)
Discussion started by: Krishanu Saha
10 Replies

7. Shell Programming and Scripting

Script need to do update xml file

<avp name="CC-Request-Type" value="1"> </avp> <avp name="CC-Request-Number" value="0"> </avp> <avp name="Subscription-Id"> <avp name="Subscription-Id-Type" value="0"></avp> <avp name="Subscription-Id-Data" value="4081234567"></avp> </avp> <avp... (5 Replies)
Discussion started by: gstar
5 Replies

8. Shell Programming and Scripting

Positional Update of XML File

Hello, I have a XML file and need to update the data for a specific XML Attribute in the file. I need a Perl or Awk command to look for <INTERCHANGE_CONTROL_NO>000000601</INTERCHANGE_CONTROL_NO> in the XML file and change the first two 0 of the value to 9. For instance ... (4 Replies)
Discussion started by: Praveenkulkarni
4 Replies

9. Shell Programming and Scripting

How to retrieve values from XML file and update them in the same position! PLEASE HELP?

Good Day All Im quiet new to ksh scripting and need a bit of your help. I am attempting to write a script that reads in an XML and extracts certain field values from an XML file. The values are all alphanumeric and consist of two components: e.g "Test 1". I need to to create a script that... (2 Replies)
Discussion started by: JulioAmerica
2 Replies

10. Shell Programming and Scripting

Update particular tag in a XML file

Below is the content in my XML file <name>XXX</name> <eventType>Uptime</eventType> <eventType>Delay</eventType> <eventType>Delay</eventType> <name>YYY</name> <eventType>Uptime</eventType> <eventType>Delay</eventType> ... (12 Replies)
Discussion started by: Viswanatheee55
12 Replies
SubmitDiagInfo(8)					    BSD System Manager's Manual 					 SubmitDiagInfo(8)

NAME
SubmitDiagInfo -- sends diagnostic information to Apple SYNOPSIS
SubmitDiagInfo DESCRIPTION
SubmitDiagInfo is a system process which runs periodically. If the user has opted-in for automatic reporting of diagnostic and usage infor- mation, then SubmitDiagInfo collects and sends to Apple any recent diagnostic information which has not yet been sent to Apple. SubmitDiagInfo also cleans up any diagnostic and usage information which was created more than one month ago and is no longer needed. Sending diagnostic and usage reports to Apple helps us improve the quality and performance of our products and services. It helps Apple identify common usage trends and issues that enable us to allocate our resources efficiently, and it helps us provide better support services to you and other customers. All of the diagnostic and usage information is collected anonymously from your computer in a way that does not personally identify you. Reports may include the following information: - Details about application or system crashes, freezes, or kernel panics. - Information about events on your computer (e.g. whether a certain function, such as waking your computer was successful or not). - Usage information (e.g. data about how Apple and third party software, hardware and services are being used). Automatic reporting of diagnostic information is off by default and no information is sent to Apple unless a user has opted-in to automatic collection of diagnostic information. A user is offered the opportunity to opt-in for automatic collection of additional diagnostic and usage information after the user has manually sent a crash, hang or panic report to Apple. Users may at any time opt in or out of automatic reporting in the Security & Privacy pane of the System Preferences application under the "Privacy" tab. All diagnostic and usage information which is eligible for automatic reporting is visible in the Console application under the "DIAGNOSTIC AND USAGE INFORMATION" heading in the application's sidebar. (The information appears here even if a user has not yet opted-in for automatic reporting.) For security purposes, some system diagnostic information will only be visible to admin users and will only be submitted when an admin user is logged in. Users who need technical support should use http://www.apple.com/support or other authorized support channels. Developers who are ADC mem- bers should submit bug reports using http://bugreporter.apple.com in order to allow for two way communication between Apple and the bug reporter. SEE ALSO
ReportCrash(8) Mac OS June 2, 2019 Mac OS
All times are GMT -4. The time now is 05:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy