Sponsored Content
Full Discussion: sed newline to tab ,problem
Top Forums Shell Programming and Scripting sed newline to tab ,problem Post 302464032 by ygemici on Tuesday 19th of October 2010 06:23:50 AM
Old 10-19-2010
Code:
# cat file
gstreamer-plugins-good
gstreamer-plugins-bad
gstreamer-plugins-ugly

Code:
# sed -e :a -e 'N;s/\n/\t/' -e 'ta' file
gstreamer-plugins-good  gstreamer-plugins-bad   gstreamer-plugins-ugly

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

newline character, space and tab after a string

no problem (6 Replies)
Discussion started by: angelina
6 Replies

2. Shell Programming and Scripting

SED: how to remove newline after pattern?

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)
Discussion started by: nico.ben
1 Replies

3. Shell Programming and Scripting

SED to convert ~ in a file to newline

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)
Discussion started by: ntekupal
5 Replies

4. Shell Programming and Scripting

Errore Sed: unescaped newline

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)
Discussion started by: nolanofra
1 Replies

5. Shell Programming and Scripting

sed error: unescaped newline

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)
Discussion started by: nolanofra
2 Replies

6. Shell Programming and Scripting

Using sed I want to replace space by newline

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)
Discussion started by: RahulJoshi
5 Replies

7. Shell Programming and Scripting

sed newline

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)
Discussion started by: azertyazerty
2 Replies

8. Shell Programming and Scripting

Why SED can't see the last newline character?

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)
Discussion started by: kevintse
7 Replies

9. Shell Programming and Scripting

Substitute newline with tab at designated field separator

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)
Discussion started by: yifangt
6 Replies

10. Shell Programming and Scripting

How to remove newline, tab, spaces in curly braces.. :( Pls Help?

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
gst-register-0.8(1)						   User Commands					       gst-register-0.8(1)

NAME
gst-register-0.8, gst-register - register GStreamer plugins SYNOPSIS
gst-register-0.8 [gst-std-options] gst-register [gst-std-options] [--gst-list-mm] [--gst-mm=string] [--print] DESCRIPTION
gst-register-0.8 registers all of the GStreamer plugins on your system. gst-register-0.8 creates a listing of their properties so that on startup of GStreamer-based applications, you do not need to load plugins until you need them. When run as the root user, gst-register-0.8 creates the Global GStreamer plugin registry which is stored in /var/cache/gstreamer-X.X/reg- istry.xml, where X.X is the GStreamer major and minor version number. When run as a user other than the root user, gst-register-0.8 creates a user registry ~/.gstreamer-X.X/registry.xml, where X.X is the GStreamer major and minor version number. Programs that uses GStreamer use the user plugin registry if it exists, and use the Global plugin registry if not. gst-register is a wrapper script that runs the latest installed version of gst-register-X.X. For example, if both gst-register-0.7 and gst- register-0.8 are installed on your system, gst-register runs gst-register-0.8. OPTIONS
The following options are supported by gst-register-0.8 and gst-register: gst-std-options Standard options available for use with most GStreamer applications. See gst-std-options(5) for more information. The following options are supported by gst-register only: --gst-list-mm List found major/minor versions. This option displays the versions that are available. --gst-mm=string Force major/minor version. This option enables you to specify a specific version to run, if you do not want to run the default version. --print Print wrapped command line. This option displays the command that will be run, and then runs the command. EXAMPLES
Example 1: Running the Wrapper Script and Displaying the Command Name example% gst-register --print /usr/bin/gst-register-0.8 FILES
The following files are used by this application: /usr/bin/gst-register-0.Executable to register GStreamer plugins /usr/bin/gst-register Wrapper script that runs the latest installed version of gst-register-X.X /var/cache/gstreamer-X.XGStreamer.global plugin registry, where X.X is the GStreamer major and minor version number. ~/.gstreamer-X.X/registrGStreamer user plugin registry, where X.X is the GStreamer major and minor version number. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-media | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gst-complete(1), gst-compprep(1), gst-feedback(1), gst-inspect(1), gst-launch(1), gst-launch-ext(1), gst-md5sum(1), gst-thumbnail(1), gst- typefind(1), gst-xmlinspect(1), gst-xmllaunch(1), gstreamer-properties(1), libgstreamer-0.8(3), libgstgetbits(3), gst-std-options(5) NOTES
Original man page written by the GStreamer team at http://gstreamer.net/. Updated by Brian Cameron, Sun Microsystems Inc., 2004. SunOS 5.10 14 Oct 2004 gst-register-0.8(1)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy