Hello, im writing a script that validates a URL (the parameter) using http://validator.w3.org
first it downloads the site (the output line I want is stored in the h2 field of the site's html.
but i fear that, if the h2 field would be longer than one line, the sed command wouldn't find it.
is there any option with sed (or something else) so that it doesnt like line by line?
thx in advance!
This is another version i tried, but i also fear it wouldn't work if the h2 field is longer than 1 line
Please help!
Input pattern, where ... could be any number of lines
struct A {
Blah1
Blah2
Blah3
...
} B;
output pattern
struct AB {
Blah1
Blah2
Blah3
...
};
I need help in extracting everything between { and }
if it would have been on a single line { \(.*\)} should have worked. (15 Replies)
hey gents,
I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Hi,
I'm trying to delete multiple lines following a line that matches a pattern.
The pattern will appear several times in a file. So when i encounter that pattern in a line, i have to delete that line plus the next 4 lines.
Something similar to what grep does
grep -A5 'pattern' filename.... (1 Reply)
Hi there!
I am really enjoying working with sed. I am trying to come up with a sed command to replace some occurrences (not all) in the same line, for instance:
I have a command which the output will be:
200.300.400.5 0A 0B 0C 01 02 03
being that the last 6 strings are actually one... (7 Replies)
I'm using sed to pull links from a rather large html file, and so far it's working rather well, but I've noticed that it is skipping some links.
On some lines there are multiple links for example:
It is completely skipping the first link in these.
Here is what I'm using:
sed 's/^.*<a... (4 Replies)
Hi,
I am have one file with a line
group=project_live
I need to replace it with line
group=project_live_support
before I execute some application related script.
The potentianl problem is when I replace this with sed using command
sed... (2 Replies)
Would appear to me to be a farily simple question but having search all the threads I can't find the answer .. I just want sed to output the single line in a file that contains two string anywhere on the line..
e.g. currently using this command
sed -n -e'/str1/p' -e '/str2/p' < file
and... (3 Replies)
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Hello
I am trying to write sed code where it will look through the text for lines with specific expression "Started by user" and when found, will also add the following line, and also lines with another expression "Finished:"
sed -n '/Started by user/, +1p, /Finished:/'... (4 Replies)
Discussion started by: dlesny
4 Replies
LEARN ABOUT DEBIAN
felix-framework
FELIX(1) User Commands FELIX(1)NAME
felix-framework - command line Felix OSGi Framework launcher
SYNOPSIS
felix-framework [-b <bundle-deploy-dir>] [<bundle-cache-dir>]
DESCRIPTION
felix-framework provide a way to start Apache Felix OSGi Framework from command line. After startup, it provide some simple commands to
help management of OSGi bundle.
OPTIONS -b bundle-deploy-dir
The Felix launcher deploys all bundles in the auto-deploy directory into the framework instance during startup. By default, the
auto-deploy directory is /usr/share/felix-framework/bundle/ Specifying an auto-deploy directory replaces the default directory, it
does not augment it.
bundle-cache-dir
path you want to use as the bundle cache. If you specify a relative cache path, then it will be treated as relative to ~/.felix/ By
default, felix-framework will use ~/.felix/felix-cache/
FILES
/etc/felix-framework/config.properties
The system wide configuration file for Felix Framework. See <URL:http://felix.apache.org/site/apache-felix-framework-configuration-
properties.html> for further details.
FILES
~/.felix/
Default user cache directory for OSGi bundle information.
AUTHOR
Damien Raude-Morvan <drazzib@debian.org>
SEE ALSO
<URL:http://felix.apache.org/site/apache-felix-framework-usage-documentation.html>
Felix November 2011 FELIX(1)