01-28-2010
you won't be able to do this reliably with sed.
it's non trivial I'd say to get it right.
it's an xml file you're better off using a proper XML processor.
how about this?
GNOME_Tips#Menu_Editing
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a config file with multiple section and a parameter with the same name in each section. I need to read each parameter for distinct section.
Parameter = 1
....
Parameter = 2
....
Parameter = 4
....
Tried this:
grep -m1 '^*ProcessorsNumber' ServiceBrokerFramework.cfg |... (7 Replies)
Discussion started by: potro
7 Replies
2. UNIX for Advanced & Expert Users
I have a file that I need to parse multiple sections from the file.
The file contains multiple lines that start with ST (Abunch of data)
Then the file contains multiple lines that start with SE (Abunch of data)
SE*30*0001 ... (1 Reply)
Discussion started by: rgentis
1 Replies
3. Shell Programming and Scripting
I have a file that I need to parse multiple sections from the file.
The file contains multiple lines that start with ST (Abunch of data)
Then the file contains multiple lines that start with SE (Abunch of data)
SE*30*0001
ST*810*0002
I need all of the lines between and including these.... (6 Replies)
Discussion started by: rgentis
6 Replies
4. Shell Programming and Scripting
Greetings,
I have a file: hostnames.txt which has -
# cat hostnames.txt
machine1
machine2
I need the output to be saved to a variable as:
HOSTNAMELIST=machine1,machine2
Please advise.
Thanks,
Chiru (3 Replies)
Discussion started by: chiru_h
3 Replies
5. Shell Programming and Scripting
Is it possible to do this with sed?
Go from this:
958211 XXYYXXYYXX file1 file2 file3
958897 XXYYXXYYXX file1 file2
To this:
file1 file2 file3 XXYYXXYYXX 958211
file1 file2 XXYYXXYYXX 958897
The only thing consistant is XXYYXXYYXX. The numbers and files vary in length. I have seen I... (5 Replies)
Discussion started by: crowman
5 Replies
6. Shell Programming and Scripting
Hi,
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Discussion started by: n00ti
3 Replies
7. Shell Programming and Scripting
Hello Team,
I want to know if there is any one liner command , using which I can edit multiple column of a file.
input file input.txt (comma separated),
taran, 12.45, uttam, 23.40, babay
karan, 12.45, raju, 11.40, rahulg
I want to update, 2nd and 4th column,
but want all those column... (8 Replies)
Discussion started by: Uttam Maji
8 Replies
8. Shell Programming and Scripting
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies
9. Shell Programming and Scripting
Hi All,
I am preserving OLD and NEW values and want to replace the values in one go instead of using multiple sed and mv commands. Please help.
echo "\nEnter the new qStart time '${CODE}' - (Hit Enter for No Change): \c"
read NEW
echo "\nEnter the new qStop time '${CODE}' - (Hit Enter for... (2 Replies)
Discussion started by: sdosanjh
2 Replies
10. Shell Programming and Scripting
Hello:
I have the following HTML table:
<table>
<thead>
<tr>
<th>Code</th>
<th>Percentage</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>30%</td>
</tr>
<tr>
<td>2</td>
... (3 Replies)
Discussion started by: Cacializ
3 Replies
LEARN ABOUT DEBIAN
sapphire
SAPPHIRE(1) General Commands Manual SAPPHIRE(1)
NAME
sapphire -- minimal but configurable window manager
SYNOPSIS
sapphire [-display displayname | -version ]
DESCRIPTION
This manual page documents briefly the sapphire command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
sapphire is a minimal but configurable window manager for X11R6. It supports themes in the form of X resource files, and has a customisable
menu.
The Debian version receives Debian menu entries automatically in a "Debian" submenu by default, you can add entries specifically to sap-
phire (in the rest of the menu) in the default-menu file. For more information, see update-menus (1) and the FILES section below.
Users can also set their own options in $HOME/.sapphire/wmconf (an X resource file).
OPTIONS
-display displayname
Use the X-server display 'displayname'.
-version Show version of program.
FILES
/etc/X11/sapphire/menu/default-menu
menu entries specific to sapphire (you can edit this one, it's a conffile)
/etc/X11/sapphire/menu/menudefs.hook
Debian menu entries in sapphire's format, not read directly, do not edit (edit default-menu instead)
/etc/X11/sapphire/menu/default
this menu file is the one sapphire actually reads, it is automatically generated from the other two by update-menus, do not edit
(edit default-menu instead)
$HOME/.sapphire/wmconf
user-specific options
/usr/share/sapphire/themes
themes directory, all of the above may refer to themes from here (the files themselves are X resource files)
HISTORY
Sapphire was originally developed from Decklin Foster's aewm, and also uses some code from Blackbox (for gradients).
SEE ALSO
XFree86 (1), update-menus (1).
AUTHOR
This manual page was written by Chris Boyle <cmb@debian.org> for the Debian GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later
version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
SAPPHIRE(1)