I am trying to extract "securitySettings" out of line:
<a ref ="http://localhost:5654/securitySettings">
using sed as follows:
name = `grep "localhost" file.html | sed -n 's/.**\/\(.*)/\">/\1/p'`
But it didn't run, seems have some syntax error. Do anybody knows why?
Thank you very... (11 Replies)
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)
Hello,
I am new to sed and am trying to extract a word using sed.
for example i have a line "const TotalAmount& getTotalAmount() const; " in the file test.txt
I am trying to extract getTotalAmount() from the line.
For this i tried
cat test.txt | sed -n 's/.*get*\(\)//p
But... (8 Replies)
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)
Hello,
I have huge number files in a directory. All files have the data. I want extract data. I want all output write to single csv file.
following codes works. Thank you very much for help.
sed -n '/.*Content$txtE_Zip" type="text" value="\(*\)" maxlength.*/s//\1/p' *>file1
sed -n... (5 Replies)
Hi,
I have a text file containing 2 lines as follows:
I'm trying to extract all the strings following an "AME." The output would be as follows:
BUSINESS_UNIT
PROJECT_ID
ACTIVITY_ID
RES_USER1
RESOURCE_ID_FROM
ANALYSIS_TYPE
BI_DISTRIB_STATUS
BUSINESS_UNIT
PROJECT_ID
ACTIVITY_ID... (5 Replies)
I have this command to replace the version value from PROGRAM (for example here PROGRAM == player) by NEWVERSION
sed "/^ *$PROGRAM:/{N; s/*$/ $NEWVERSION/;}" -i $PRDFILE
player:
version: V6R2013xD3HF5v1
player_old:
version: V6R2013xD3HF5v1
partchecker:
version:... (2 Replies)
Discussion started by: jcanale
2 Replies
LEARN ABOUT SUNOS
libplot
libplot(3LIB) Interface Libraries libplot(3LIB)NAME
libplot, lib300, lib300s, lib4014, lib450, libvt0 - graphics interface libraries
SYNOPSIS
cc [ flag... ] file... -lplot [ library... ]
#include <plot.h>
DESCRIPTION
Functions in this library generate graphics output.
INTERFACES
The shared object libplot.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object
interfaces.
arc box
circle closepl
closevt cont
erase label
line linemod
move openpl
openvt point
space
FILES
/usr/lib/libplot.so.1 shared object
/usr/lib/64/libplot.so.1 64-bit shared object
/usr/lib/lib300.so.1 shared object
/usr/lib/64/lib300.so.1 64-bit shared object
/usr/lib/lib300s.so.1 shared object
/usr/lib/64/lib300s.so.1 64-bit shared object
/usr/lib/lib4014.so.1 shared object
/usr/lib/64/lib4014.so.1 64-bit shared object
/usr/lib/lib450.so.1 shared object
/usr/lib/64/lib450.so.1 64-bit shared object
/usr/lib/libvt0.so.1 shared object
/usr/lib/64/libvt0.so.1 64-bit shared object
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsl (32-bit) |
+-----------------------------+-----------------------------+
| |SUNWcslx (64-bit) |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO pvs(1), intro(3), attributes(5)SunOS 5.10 13 Jun 2003 libplot(3LIB)