normally it can be done by enter in the sed command, you can search in forum, there are many samples, here is the code that no need "enter" in sed command:
Hi,
I have the following XML not well-indented code:
<hallo
>this is a line
</hallo>
So I need to remove the newline.
This syntax finds what I need to correct, but I don't know how to remove the newline after my pattern:
sed 's/<.*$/&/'
How can I subtract the newline after my... (1 Reply)
Hi,
I have a .txt file which has a tilde(~) in it.
All that I want is to break into a newline whenever there is an occurence of '~'.
I have tried SED to do that but I could not succeed.
I would appreciate if I can get a shell script(ksh) for this problem real quick.
Thanks in advance.
... (5 Replies)
Salve,
mi occorre realizzare uno script che prenda in ingresso tre parametri: un file di testo contenente una vecchia licenza, un file contenente una nuova licenza e una directory, contenente dei sorgenti c a cui sostituire la vecchia licenza con la nuova.
Pensavo di utilizzare sed, con... (1 Reply)
Hi,
i need to make a script bash that takes in input three parameters: a text file that contains an old license, a file that contains a new license, and a directory that contains source files and i have to substitute to these file the old license with the new one.
So, i think tu use sed, in... (2 Replies)
Input:
--------------------------
123asd 456sdasda 789a
-------------------------
output wanted:
---------------------
123asd
456sdasda
789a
----------------------
I want this by sed in simple way
please help (I know by: tr ' ' '\n' < inputfile )I want it by sed only (5 Replies)
Hi everyone,
I'd like to use the script validatehtml which returns either the given url is HTML strict or not, using http:// validator . w3 . org .
sh validatehtml
#!/bin/bash
wget -q http:// validator . w3 .org / check?uri=$1
cat check\?uri\=$1 | sed -n '/h2/ p' | sed 's/ */ /g' | sed... (2 Replies)
Removed.
My question does not make sense. and SED does see the last newline character.
But I still have a question:
How to remove the last newline character(the newline character at the end of last line) using SED?
---------- Post updated 05-01-11 at 10:51 AM ---------- Previous update was... (7 Replies)
Hello, I need to replace newline with tab at certain lines of the file (every four lines is a record).
infile.fq:
@GAIIX-300
ATAGTCAAAT
+
_SZS^\\\cd
@GAIIX-300
CATACGACAT
+
hhghfdffhh
@GAIIX-300
GACGACGTAT
+
gggfcfoutfile:
@GAIIX-300 ATAGTCAAAT + _SZS^\\\cd
@GAIIX-300 ... (6 Replies)
Hi Everyone,
in the below "xyz (Exception e)" part... after the curly braces, there is a new line and immediately few tabs are present before closing curly brace.
xyz (Exception e) {
}
note: there can be one or more newlines between the curly braces.
My desired output should be ... (6 Replies)
Discussion started by: NY_777
6 Replies
LEARN ABOUT OPENSOLARIS
gst-inspect
gst-inspect(1) User Commands gst-inspect(1)NAME
gst-inspect - print information about a GStreamer element or plugin
SYNOPSIS
gst-inspect [-a] [--print-all] [--print-plugin-auto-install-info] [--version] [gst-std-options] [element | plugin]
DESCRIPTION
gst-inspect prints information about available GStreamer plugins, information about a particular plugin, or information about a particular
element.
If no element or plugin argument is specified, gst-inspect prints a list of all plugins and elements. If an element or plugin argument is
specified, gst-inspect prints information about that element or plug-in. If a given argument is valid as either an element or a plugin,
gst-inspect treats the argument as an element, by default.
OPTIONS
The following options are supported by gst-inspect:
-a, --print-all
Print all elements.
--print-plugin-auto-install-info
Prints a machine-parsable list of features the specified plugin provides.
--version
Print GStreamer version number.
gst-std-options
Standard options available for use with most GStreamer applications. See gst-std-options(5) for more information.
OPERANDS
The following operands are supported:
element Name of an element.
plugin Name of a plugin.
EXAMPLES
Example 1: Displaying Information About a Plugin:
example% gst-inspect alaw
Plugin Details:
Name: alaw
Description: ALaw audio conversion routines
Filename: /usr/lib/gstreamer-0.10/libgstalaw.so
Version: 0.10.3
License: LGPL
Source module: gst-plugins-good
Binary package: GStreamer Good Plug-ins source release
Origin URL: Unknown package origin
alawdec: A Law audio decoder
alawenc: A Law audio encoder
2 features:
+-- 2 elements
FILES
The following files are used by this application:
/usr/bin/gst-inspect Print information about a GStreamer element or plugin
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-media |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO gst-feedback(1), gst-launch(1), gst-typefind(1), gst-xmlinspect(1), gst-xmllaunch(1), gstreamer-properties(1), libgstreamer-0.10(3),
attributes(5), gst-std-options(5)NOTES
Original man page written by the GStreamer team at http://www.gstreamer.net/.
Updated by Brian Cameron, Sun Microsystems Inc., 2004, 2006.
SunOS 5.11 14 Oct 2004 gst-inspect(1)