I noticed all previous solutions posted extract all speed values. But OP is interested in extracting speed values only for BMW and wanted to assign them to shell variable.
Here is an approach using bash, storing each speed values into an array:
Hi,
I'm looking for an "easy" way to parse a xml file to a proper structure.
The xml looks like this
What shall I use? Does anybody has some example-code to share or some good links/book-references?
thx for any reply
-fe (5 Replies)
I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
Hi,
I need to parse the following XML data enclosed in <a> </a> XML tag using shell script.
<X>
.....
</X>
<a>
<b>
<c>data1</c>
<c>data2</c>
</b>
<d>
<c>data3</c>
</d>
</a>
<XX>
...
</XX> (5 Replies)
How can I parse file containing xml ?
I am sure that its best to use perl - but my perl is not very good - can someone help?
Example below contents of file containing the xml - I basically want to parse the file and have each field contained in a variable..
ie. I want to store the account... (14 Replies)
I have an task definition listing xml file that contains a list of tasks such as
<TASKLIST
<TASK definition="Completion date" id="Taskname1" Some other
<CODE name="Code12"
<Parameter pname="Dog" input="5.6" units="feet" etc /Parameter>
<Parameter... (3 Replies)
Hello all,
Given the following extract from a xml file with multiple <JOB> .... </JOB> entries
<JOB
APPLICATION="APP"
APR="0"
AUG="0"
AUTHOR="AUT"
AUTOARCH="0"
CMDLINE="/tmp/test1 %%var"
CONFIRM="1"
CREATION_DATE="20100430"
CREATION_TIME="130739"
... (2 Replies)
Hi all!
I'm looking to write a quick script and in it I need to request an XML file from a service running on localhost and parse that XML file and output it. I'm looking to do it in bash although it doesn't really matter what shell it is in. The XML file returned would look like this:
... (3 Replies)
Dear All,
this is my first post on this Forum, glad to be here.
I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted.
When opening the document I get this EM:
read error
format error discovered in the file in sub-document content.xml at
2,337040(row,col).
So I... (3 Replies)
Hi All,
I want to parse XML to extract values of the tags to do further processing. The XML looks like
<?xml version="1.0" encoding="ISO-8859-1"?>
<allinput>
<input A="2389906" B="install">
<C>111</C>
<D>222</D>
<E>333</E>
<F></F>
<G>444</G>
<H></H>
<I></I>
<J></J>
<K>C,D,E,G</K>... (6 Replies)
Discussion started by: rahulmittal87
6 Replies
LEARN ABOUT SUSE
getty
getty(1M) System Administration Commands getty(1M)NAME
getty - set terminal type, modes, speed, and line discipline
SYNOPSIS
/usr/lib/saf/ttymon [-h] [-t timeout] line [ speed [ type [linedisc]]]
/usr/lib/saf/ttymon -c file
DESCRIPTION
getty sets terminal type, modes, speed, and line discipline. getty is a symbolic link to /usr/lib/saf/ttymon. It is included for compati-
bility with previous releases for the few applications that still call getty directly.
getty can only be executed by the super-user, (a process with the user ID root). Initially getty prints the login prompt, waits for the
user's login name, and then invokes the login command. getty attempts to adapt the system to the terminal speed by using the options and
arguments specified on the command line.
Without optional arguments, getty specifies the following: The speed of the interface is set to 300 baud, either parity is allowed, NEW-
LINE characters are converted to carriage return-line feed, and tab expansion is performed on the standard output. getty types the login
prompt before reading the user's name a character at a time. If a null character (or framing error) is received, it is assumed to be the
result of the user pressing the BREAK key. This will cause getty to attempt the next speed in the series. The series that getty tries is
determined by what it finds in /etc/ttydefs .
OPTIONS
The following options are supported:
-h If the -h flag is not set, a hangup will be forced by setting the speed to zero before setting the speed to the default or
a specified speed.
-t timeout Specifies that getty should exit if the open on the line succeeds and no one types anything in timeout seconds.
-c file The -c option is no longer supported. Instead use /usr/sbin/sttydefs -l to list the contents of the /etc/ttydefs file and
perform a validity check on the file.
OPERANDS
The following operands are supported:
line The name of a TTY line in /dev to which getty is to attach itself. getty uses this string as the name of a file
in the /dev directory to open for reading and writing.
speed The speed argument is a label to a speed and TTY definition in the file /etc/ttydefs. This definition tells getty
at what speed to run initially, what the initial TTY settings are, and what speed to try next, (should the user
press the BREAK key to indicate that the speed is inappropriate). The default speed is 300 baud.
type and linedisc These options are obsolete and will be ignored.
FILES
/etc/ttydefs
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
SEE ALSO ct(1C), login(1), sttydefs(1M), ttymon(1M), ioctl(2), attributes(5), tty(7D)SunOS 5.10 14 Sep 1992 getty(1M)