Sponsored Content
Full Discussion: xml extract problem
Top Forums Shell Programming and Scripting xml extract problem Post 302560942 by Klasform on Sunday 2nd of October 2011 01:58:38 PM
Old 10-02-2011
Yes on both count. The file is from gnote. They represent the carriage return I did to see more clearly. But? Now I understand what your thinking.
Code:
sed 's/title/\nsize/g' gnote.note |grep title

This doesn't work either!!

Last edited by Scott; 10-03-2011 at 10:06 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

· simerian · XML Extract

The script following in this thread allows XML data to be located and extracted in a variety of forms from an XML data stream. Using this utility, it is possible to extract all manner of XML subsets and allow data to be post inserted into the "original" XML at any logical point. The pipe is... (2 Replies)
Discussion started by: Simerian
2 Replies

2. Shell Programming and Scripting

SED extract XML value

I have the following string: <min-pool-size>2</min-pool-size> When I pipe the string into the following code I am expcting for it to return just the value "2", but its just reurning the whole string. Why?? sed -n '/<min-pool-size>/,/<\/min-pool-size>/p' Outputting:... (13 Replies)
Discussion started by: ArterialTool
13 Replies

3. Shell Programming and Scripting

Extract xml data

Hi all, I have the following xml file : <xmlhead><xmlelement1>element1value</xmlelement1>\0a<xmlelement2>jjasd</xmlelement2>...</xmlhead> As you can see there are no lines or spaces seperating the elements, just the character \0a. How can i find and print the values of a specific element?... (1 Reply)
Discussion started by: nthed
1 Replies

4. Shell Programming and Scripting

XML data extract

Hi all, I have the following xml document : <HEADER><El1>asdf</El1> <El2>3</El2> <El3>asad</El3> <El4>asasdf</El4> <El5>asdf</El5> <El6>asdf</El6> <El7>asdf</El7> <El8>A</El8> <El9>0</El9> <El10>75291028141917</El10> <El11>asdf</El11> <El12>sdf</El12> <El13>er</El13> <El14><El15>asdf... (1 Reply)
Discussion started by: nthed
1 Replies

5. Shell Programming and Scripting

sed extract from xml

I have an xml file that generally looks like this: "<row><dnorpattern>02788920</dnorpattern><description/></row><row><dnorpattern>\+ 44146322XXXX</dnorpattern><description/></row><row><dnorpattern>40XXX</dnorpattern><description/></row><row><dnorpattern>11</dn... (4 Replies)
Discussion started by: garboon
4 Replies

6. Shell Programming and Scripting

Extract value from XML

I have a file like below <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:executeMDXResponse... (9 Replies)
Discussion started by: manas_ranjan
9 Replies

7. Shell Programming and Scripting

Extract string from XML

Hi, I wish to grep for the first instance of <listen-address> value between the first <server></server> tag in an xml file. Sample xml: ......... <timeout-seconds>1500</timeout-seconds> </jta> <server> <name>Adminserver_DEV</name> ... (9 Replies)
Discussion started by: mohtashims
9 Replies

8. Shell Programming and Scripting

Extract a particular xml only from an xml jar file

Hi..need help on how to extract a particular xml file only from an xml jar file... thanks! (2 Replies)
Discussion started by: qwerty000
2 Replies

9. Shell Programming and Scripting

Extract strings from XML files and create a new XML

Hello everybody, I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings.. The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies

10. Shell Programming and Scripting

Extract a value from an xml file

I have this XML file format and all in one line: Fri Dec 23 00:14:52 2016 Logged Message:689|<?xml version="1.0" encoding="UTF-8"?><PORT_RESPONSE><HEADER><ORIGINATOR>XMG</ORIGINATOR><DESTINAT... (16 Replies)
Discussion started by: mrn6430
16 Replies
GNOTE(1)						       GNOME User's Manuals							  GNOTE(1)

NAME
gnote - A simple note-taking application for Gnome SYNOPSIS
gnote [OPTION] ... DESCRIPTION
This manual page documents briefly the gnote command. Gnote is a desktop note-taking application for Linux and Unix. Simple and easy to use, but with potential to help you organize the ideas and information you deal with every day. Gnote's usefulness lies in the ability to relate notes and ideas together, using a WikiWiki-like linking system. When run without any options, either a Search All Notes window or the Gnote note menu appears in the notification tray area depending on configuration. Selecting a note from a list in Search All Notes or from the menu from notification area displays the note's spatial win- dow. Changes to notes are saved automatically. Links to URLs, files, and other notes are detected as you type. Rich editing such as highlight- ing, bold, italics, undo/redo, and variable font sizes are supported. Global keybindings exist to allow fast access to Gnote notes and dialogs. These keybindings are set in GConf (see below) and may be acti- vated from any application. OPTIONS
The program follows the usual GNU command line syntax, with options starting with two dashes (`--'). A summary of options are included below. --new-note Create and display a new note. --new-note TITLE Create and display a new note with the title given. --open-note TITLE/URL Display the existing note matching TITLE or URL. --start-here Display the "Start Here" note. --highlight-search TEXT Search and highlight TEXT in the opened note. --help Show summary of options. --version Show version of program. GCONF SETTINGS
Gnote has several preference settings stored in GConf. Changes to Settings are applied instantly to any running Gnote instance. A summary of the GConf settings and their purpose are described below. /apps/gnote/global_keybindings/open_start_here Global X keybinding for displaying the "Start Here" note. The default keybinding is <Alt>F11. /apps/gnote/global_keybindings/show_note_menu Global X keybinding for displaying the Gnote applet's note menu. The default keybinding is <Alt>F12. /apps/gnote/global_keybindings/create_new_note Global X keybinding for creating and displaying a new note. /apps/gnote/global_keybindings/open_recent_changes Global X keybinding for opening the recent changes dialog. /apps/gnote/global_keybindings/open_search Global X keybinding for opening the note search dialog. SEE ALSO
http://live.gnome.org/Gnote/ BUGS
Please enter bug reports in the Gnome Bugzilla bug tracker (http://bugzilla.gnome.org/enter_bug.cgi?product=Gnote). AUTHOR
Hubert Figuiere <hub@figuiere.net> This manual page was originally written by Luca Capello <luca@pca.it>. Adapted to Gnote by Hubert Figuiere gnome April 7, 2009 GNOTE(1)
All times are GMT -4. The time now is 01:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy