<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.editors.sed.user">
    <title>gmane.editors.sed.user</title>
    <link>http://blog.gmane.org/gmane.editors.sed.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5985"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5973"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5952"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5951"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5945"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5938"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5934"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5933"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5932"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5930"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5925"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5923"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5914"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5907"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5906"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5900"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5896"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5891"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.editors.sed.user/5890"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5985">
    <title>how to duplicate "columns" in a file</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5985</link>
    <description>&lt;pre&gt;Hi all,
 
hope you can help me with how to duplicate "columns" in a file:
 
before:
 
aaa
bbb
ccc
 
 
after:
 
aaa aaa
bbb bbb
ccc ccc
 
 
Thanks in advance, 
Magnus
&lt;/pre&gt;</description>
    <dc:creator>suffocator&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2013-05-16T18:17:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5973">
    <title>Insert character x at...</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5973</link>
    <description>&lt;pre&gt;Hi all, I'm needing some help creating a command line that's hopefully simple.

I'd like to use a sed command in a batch file to do the following on a fixed format input file:

For every line in input file that begins with '0530' (in first 4 characters on line), insert 'x' at position/column 32 on same line, then output the whole file to a newfile.

Optionally, if its possible to delete one character (a blank space) on same line at position 34, that would be helpful as well, to preserve formatting.

Any/all help is greatly appreciated.

Thanks

&lt;/pre&gt;</description>
    <dc:creator>blackmuerte</dc:creator>
    <dc:date>2013-05-14T21:17:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5965">
    <title>join two files</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5965</link>
    <description>&lt;pre&gt;Hi,
 
I need some help for doing the following command with sed. Is someone
could gibe me the exemple ?
 
Many thanks.
 
 
=============================
cat /tmp/file_1
 
Num;Nbr_pass;
5;1;
7;1;
8;4;
12;1;
13;5;
15;7;
=============================
 
cat /tmp/file2
 
Num ; Comments ;
1 ; AAAA ;
2 ; BBBBB ;
3 ; CC ;
4 ; XXDF ;
5 ; KIJHG ;
6 ; GFRD ;
7 ; HGTFEDFR ;
8 ; DJHY ;
9 ; FDGRTFG ;
10 ; QWXVG ;
11 ; FTGJ ;
12 ; DHGRF ;
13 ; GFDRFE ;
14 ; GFDRFE ;
15 ; FGTF ;
16 ; LKJU ;
17 ; DFDE ;
 
=============================
The result, I would like to have. 
 
 
Num ; Comments ; Nbr_pass ;
1 ; AAAA ; N/A ; 
2 ; BBBBB ; N/A;
3 ; CC ; N/A;
4 ; XXDF ; N/A;
5 ; KIJHG ;1 ;
6 ; GFRD ; N/A;
7 ; HGTFEDFR ; 1 ;
8 ; DJHY ; 1 ;
9 ; FDGRTFG ; N/A;
10 ; QWXVG ; N/A;
11 ; FTGJ ; N/A;
12 ; DHGRF ; 1 ;
13 ; GFDRFE ; 5 ;
14 ; GFDRFE ; N/A;
15 ; FGTF ; 7 ;
16 ; LKJU ; N/A;
17 ; DFDE ; N/A;

 
 
Many thanks for help.
Regards.
 
 
__________________________
Avant d'imprimer, pensez à l'environnement ! Please consider the environmen&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-05-15T11:55:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5952">
    <title>Suggest new fixed flag for s command?</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5952</link>
    <description>&lt;pre&gt;I have run into a situation sometimes where literal strings I want to replace that have metacharacters, and I want to replace it with some other similarly odd string.

For example, suppose I want to replace the literal string "jj*hh" with the literal string "foo\1bar".

To make it work, I would have to use escape characters:

$ echo 'jj*hh' | sed 's/jj\*hh/foo\\1bar/'
foo\1bar

I don't mind doing this for one or two strings, but sometimes I have a lot of strings, and don't want to escape them all by hand or write some complex script procedure.

What if the s command could have a f "fixed" flag, similar to the grep -F fixed flag, so the following would work:

$ echo 'jj*hh' | sed 's/jj*hh/foo\1bar/f'
foo\1bar

The f flag would tell s to ignore all metacharacters, to just interpret A and B in s/A/B/f as fixed strings.

Maybe there is some simpler way to do this I am overlooking? Anyway, just a suggestion.


&lt;/pre&gt;</description>
    <dc:creator>Daniel</dc:creator>
    <dc:date>2013-05-08T09:27:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5951">
    <title>File - sed1line.txt</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5951</link>
    <description>&lt;pre&gt;
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)        Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.5

Latest version of this file (in English) is usually at:
   http://sed.sourceforge.net/sed1line.txt
   http://www.pement.org/sed/sed1line.txt

This file will also available in other languages:
  Chinese     - http://sed.sourceforge.net/sed1line_zh-CN.html
  Czech       - http://sed.sourceforge.net/sed1line_cz.html
  Dutch       - http://sed.sourceforge.net/sed1line_nl.html
  French      - http://sed.sourceforge.net/sed1line_fr.html
  German      - http://sed.sourceforge.net/sed1line_de.html
  Italian     - (pending)
  Portuguese  - http://sed.sourceforge.net/sed1line_pt-BR.html
  Spanish     - (pending)


FILE SPACING:

 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
&lt;/pre&gt;</description>
    <dc:creator>sed-users&lt; at &gt;yahoogroups.com</dc:creator>
    <dc:date>2013-05-01T17:24:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5945">
    <title>File - sed1line.txt</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5945</link>
    <description>&lt;pre&gt;
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)        Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.5

Latest version of this file (in English) is usually at:
   http://sed.sourceforge.net/sed1line.txt
   http://www.pement.org/sed/sed1line.txt

This file will also available in other languages:
  Chinese     - http://sed.sourceforge.net/sed1line_zh-CN.html
  Czech       - http://sed.sourceforge.net/sed1line_cz.html
  Dutch       - http://sed.sourceforge.net/sed1line_nl.html
  French      - http://sed.sourceforge.net/sed1line_fr.html
  German      - http://sed.sourceforge.net/sed1line_de.html
  Italian     - (pending)
  Portuguese  - http://sed.sourceforge.net/sed1line_pt-BR.html
  Spanish     - (pending)


FILE SPACING:

 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
&lt;/pre&gt;</description>
    <dc:creator>sed-users&lt; at &gt;yahoogroups.com</dc:creator>
    <dc:date>2013-04-01T15:05:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5938">
    <title>count in colum</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5938</link>
    <description>&lt;pre&gt;Hi,

Someone can give me a simple sed commande for doing the following.

My file .
 
Num ; Count ;
8 ; 1 ;
9 ; 1 ;
9 ; 1 ;
9 ; 1 ;
10 ; 1 ;
10 ; 1 ;
10 ; 1 ;
11 ; 1 ;
12 ; 1 ;
12 ; 1 ;

I would like the following result with sed.

Num ; Count ;
8 ; 1 ;
9 ; 3 ;
10 ; 3 ;
11 ; 1 ;
12 ; 2 ;

Any help will be really appreciate.
Best regards.

__________________________
Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing ! 
Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouvelles décline toute responsabilité au titre de ce message. This message and any attachments are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP Energies nouvelles should not be liable for this message.
__&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-03-29T13:43:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5934">
    <title>manipulate colum</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5934</link>
    <description>&lt;pre&gt;Hi,

I have a file with fews colums, like the following (I can have more than
3 columns) . Some lines have 2 records (or more), and other 3 records
(or more).

bug_id ; creation_ts ; State ;    
9      ; 2013-03-21 
11     ; 2013-03-21
12     ; 2013-03-25  ; Y    ; 
13     ; 2013-03-25  ; Z    ;                             

I would like to obtain something like the following with sed command.

bug_id ; creation_ts ; State ;
9      ; 2013-03-21  ;  N/A  ;
11     ; 2013-03-21  ;  N/A  ;
12     ; 2013-03-25  ;   Y   ;
13     ; 2013-03-25  ;   Z   ;



Any help will be really appreciate.
Best regards.
 
__________________________
Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing ! 
Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouve&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-03-28T12:52:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5933">
    <title>help for concatenate 2 files</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5933</link>
    <description>&lt;pre&gt;Hi,

I don't know how to concatenate two files with row. 

The first file is :

cat /tmp/file1

bug_id ; creation_ts ; bug_severity
8    ;   2013-03-21 ; N/A
9    ;   2013-03-21 ; Mineur
10   ;   2013-03-21 ; Mineur
11   ;   2013-03-21 ; Mineur
12   ;   2013-03-25 ; N/A
13   ;   2013-03-25 ; N/A

The second file is :

cat /tmp/file2

bug_id ; bug_when            ; added
9      ; 2013-03-21 15:49:44 ; CONFIRME
10     ; 2013-03-21 15:04:56 ; CONFIRME
11     ; 2013-03-21 15:56:59 ; CONFIRME
12     ; 2013-03-25 17:09:09 ; CONFIRME


I don't know how to obtain the following result .

bug_id ; creation_ts ; bug_severity ;  bug_when           ; added    ;
8      ; 2013-03-21  ; N/A          ;                     ;          ;
9      ; 2013-03-21  ; Mineur       ; 2013-03-21 15:49:44 ; CONFIRME ;
10     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:04:56 ; CONFIRME ;
11     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:56:59 ; CONFIRME ;
12     ; 2013-03-25  ; N/A          ; 2013-03-25 17:09:09 ; CONFIRME ;
13     ; 20&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-03-27T15:40:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5932">
    <title>help for concatenate 2 files</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5932</link>
    <description>&lt;pre&gt;Hi,

I don't know how to concatenate two files with row. 

The first file is :

cat /tmp/file1

bug_id ; creation_ts ; bug_severity
8    ;   2013-03-21 ; N/A
9    ;   2013-03-21 ; Mineur
10   ;   2013-03-21 ; Mineur
11   ;   2013-03-21 ; Mineur
12   ;   2013-03-25 ; N/A
13   ;   2013-03-25 ; N/A

The second file is :

cat /tmp/file2

bug_id ; bug_when            ; added
9      ; 2013-03-21 15:49:44 ; CONFIRME
10     ; 2013-03-21 15:04:56 ; CONFIRME
11     ; 2013-03-21 15:56:59 ; CONFIRME
12     ; 2013-03-25 17:09:09 ; CONFIRME


I don't know how to obtain the following result .

bug_id ; creation_ts ; bug_severity ;  bug_when           ; added    ;
8      ; 2013-03-21  ; N/A          ;                     ;          ;
9      ; 2013-03-21  ; Mineur       ; 2013-03-21 15:49:44 ; CONFIRME ;
10     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:04:56 ; CONFIRME ;
11     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:56:59 ; CONFIRME ;
12     ; 2013-03-25  ; N/A          ; 2013-03-25 17:09:09 ; CONFIRME ;
13     ; 20&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-03-27T15:02:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5930">
    <title>help for concatenate 2 files</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5930</link>
    <description>&lt;pre&gt;Hi,

I don't know how to concatenate two files with row. 

The first file is :

cat /tmp/file1

bug_id ; creation_ts ; bug_severity
8    ;   2013-03-21 ; N/A
9    ;   2013-03-21 ; Mineur
10   ;   2013-03-21 ; Mineur
11   ;   2013-03-21 ; Mineur
12   ;   2013-03-25 ; N/A
13   ;   2013-03-25 ; N/A

The second file is :

cat /tmp/file2

bug_id ; bug_when            ; added
9      ; 2013-03-21 15:49:44 ; CONFIRME
10     ; 2013-03-21 15:04:56 ; CONFIRME
11     ; 2013-03-21 15:56:59 ; CONFIRME
12     ; 2013-03-25 17:09:09 ; CONFIRME


I don't know how to obtain the following result .

bug_id ; creation_ts ; bug_severity ;  bug_when           ; added    ;
8      ; 2013-03-21  ; N/A          ;                     ;          ;
9      ; 2013-03-21  ; Mineur       ; 2013-03-21 15:49:44 ; CONFIRME ;
10     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:04:56 ; CONFIRME ;
11     ; 2013-03-21  ; Mineur       ; 2013-03-21 15:56:59 ; CONFIRME ;
12     ; 2013-03-25  ; N/A          ; 2013-03-25 17:09:09 ; CONFIRME ;
13     ; 20&lt;/pre&gt;</description>
    <dc:creator>MOKRANI Rachid</dc:creator>
    <dc:date>2013-03-27T14:55:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5925">
    <title>what does this mean ?</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5925</link>
    <description>&lt;pre&gt;
  sed '/^$/d;G'
   
  1. what is ^$ meaning ? 
  2. what is ; meaning?
  3. what is G meaning ?

  thanks!
&lt;/pre&gt;</description>
    <dc:creator>ishare</dc:creator>
    <dc:date>2013-03-15T01:03:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5923">
    <title>why is this result?</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5923</link>
    <description>&lt;pre&gt;
 I have a file named by "1", its content is
 
 xyz
 123
 dfd
 xyzdfdf


 when I typed :   sed 'p' 1 . 
 it print out : 
xyz
xyz
123
123
dfd
dfd
xyzdfdf
xyzdfdf

Obviously ,every line has been duplicated once ,why is this result?



thanks!
&lt;/pre&gt;</description>
    <dc:creator>ishare</dc:creator>
    <dc:date>2013-03-14T13:42:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5914">
    <title>File - sed1line.txt</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5914</link>
    <description>&lt;pre&gt;
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)        Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.5

Latest version of this file (in English) is usually at:
   http://sed.sourceforge.net/sed1line.txt
   http://www.pement.org/sed/sed1line.txt

This file will also available in other languages:
  Chinese     - http://sed.sourceforge.net/sed1line_zh-CN.html
  Czech       - http://sed.sourceforge.net/sed1line_cz.html
  Dutch       - http://sed.sourceforge.net/sed1line_nl.html
  French      - http://sed.sourceforge.net/sed1line_fr.html
  German      - http://sed.sourceforge.net/sed1line_de.html
  Italian     - (pending)
  Portuguese  - http://sed.sourceforge.net/sed1line_pt-BR.html
  Spanish     - (pending)


FILE SPACING:

 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
&lt;/pre&gt;</description>
    <dc:creator>sed-users&lt; at &gt;yahoogroups.com</dc:creator>
    <dc:date>2013-03-02T08:43:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5907">
    <title>Need help with SED</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5907</link>
    <description>&lt;pre&gt;&amp;lt; at &amp;gt;echo off
dir /b /s | find ".pscx" &amp;gt; mydir.txt
pushd .                    
for /F "delims==" %%a in (mydir.txt) do (
echo "%%a"
sed -i "s/1.0101/1.0400/g" "%%a" &amp;gt; junk.txt
move junk.txt "%%a"
)
popd          
del mydir.txt 
-------------------

I wrote the above code to change 1.0101 to 1.0400 in all .pscx files in all directories from where I am executing this batch file.

I read SED manual and it said -i option would directly change .pscx files but it complained. So I directed the output to junk.txt. I wanted to move junk.txt back to .pscx file. It is this part of the above script that's not working.

Any suggestions why -i is not working and how I can make the above to work?

Thanx 
Kailash


&lt;/pre&gt;</description>
    <dc:creator>goshainganj</dc:creator>
    <dc:date>2013-02-15T10:51:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5906">
    <title>yahoo groups mangles some syntax?</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5906</link>
    <description>&lt;pre&gt;I started a new topic (should have done this before), 
because this has diverged from N / N+1 topic. You can 
see previous posts under N / N+1 topic. I know this 
"mangling" is not directly about sed. But I think it 
matters that everyone sees syntax as a poster intended.

Thanks for sending screenshot of your MUA. I repeated 
the test from a test yahoo group I made. Email sent to 
Thunderbird email client displays the syntax correctly. 
So not a total failure. MUA works. But here's the 
apparent score so far, for three environments:

A) yahoo groups archive mangles some syntax.
B) yahoo email reader mangles some syntax.
C) MUA (Thunderbird and at least one other) works.

Two out of three tested environments seem subject
to failure. Kind of a problem... Especially because 
A) should be the archive, the common reference.

The basic cause seems to be yahoo "knows about"
HTML tags and entities, is not a text-only thing.
But our discussion are really text-only (I think).

I have no idea how often this arises in &lt;/pre&gt;</description>
    <dc:creator>Daniel</dc:creator>
    <dc:date>2013-02-05T04:18:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5900">
    <title>File - sed1line.txt</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5900</link>
    <description>&lt;pre&gt;
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)        Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.5

Latest version of this file (in English) is usually at:
   http://sed.sourceforge.net/sed1line.txt
   http://www.pement.org/sed/sed1line.txt

This file will also available in other languages:
  Chinese     - http://sed.sourceforge.net/sed1line_zh-CN.html
  Czech       - http://sed.sourceforge.net/sed1line_cz.html
  Dutch       - http://sed.sourceforge.net/sed1line_nl.html
  French      - http://sed.sourceforge.net/sed1line_fr.html
  German      - http://sed.sourceforge.net/sed1line_de.html
  Italian     - (pending)
  Portuguese  - http://sed.sourceforge.net/sed1line_pt-BR.html
  Spanish     - (pending)


FILE SPACING:

 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
&lt;/pre&gt;</description>
    <dc:creator>sed-users&lt; at &gt;yahoogroups.com</dc:creator>
    <dc:date>2013-02-02T14:40:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5896">
    <title>"sed libraries"</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5896</link>
    <description>&lt;pre&gt;Hi


I was thinking about a kind of sed "libraries" that can help to convert 
from different formats like html to latex or anything else. Usually, 
there are programs for that but when you want to add something special, 
a sheet for main conversation that can be adapted would be very helpful. 
E.g. I want to convert html to latex, and every &amp;lt;font 16pt ...&amp;gt; should 
give me a subsection entry. I cannot use html2latex as this information 
is lost and no subsection is created. Therefore, I have to create my own 
script, what leaves me with having to set up a huge conversion table for 
all special chars, etc.
For that, a sed script listing all these conversions would be of immense 
help.

Let's create a sed library with such scripts (if it does not exist 
already ...)



See example below.


---
html to latex sed:
# delete header
0,/&amp;lt;body&amp;gt;/d

# convert signs
s|\$|\\$|g
s|%|\\%|g
s|\#|\\#|g
s|{|\\{|g
s|}|\\}|g
s|_|\\_|g


s|\x84|,,|g
s|\x85|{\\ldots}|g
s|\x91|{\\textquoteleft}|g
s|\x92|{\\textquoteright}|g
s|\x93|&lt;/pre&gt;</description>
    <dc:creator>Thierry Blanc</dc:creator>
    <dc:date>2013-01-31T11:55:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5891">
    <title>lines matching N and N+1</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5891</link>
    <description>&lt;pre&gt;This came up in a recent cross-Atlantic conversation. :)

The problem: How to apply a change when a *combination* 
of lines occurs, eg when the word "foo" appears in line 
N and the word "bar" appears in line N+1. How then to 
apply the change in line N (or line N+1)? For example, 
change word "foo" to "FOO" and word "bar" to "BAR".

Here's a test file I dreamed up:

food foot foo
bare bark bar
bar bark bare
bark bar bare
foot foo food
bark bar bare
foot foo food
foo foot food
bar bark bare
foot foo food 

Here's the desired output:

food foot FOO
bare bark BAR
bar bark bare
bark bar bare
foot FOO food
bark BAR bare
foot foo food
FOO foot food
BAR bark bare
foot foo food 

I tried doing this in bash and couldn't make it
work. I do have a possible sed solution.

Thought I'd post this, see if anyone would like
to take a look, either sed or bash (or whatever!).

Daniel


&lt;/pre&gt;</description>
    <dc:creator>Daniel</dc:creator>
    <dc:date>2013-01-28T20:18:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5890">
    <title>File - sed1line.txt</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5890</link>
    <description>&lt;pre&gt;
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)        Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.5

Latest version of this file (in English) is usually at:
   http://sed.sourceforge.net/sed1line.txt
   http://www.pement.org/sed/sed1line.txt

This file will also available in other languages:
  Chinese     - http://sed.sourceforge.net/sed1line_zh-CN.html
  Czech       - http://sed.sourceforge.net/sed1line_cz.html
  Dutch       - http://sed.sourceforge.net/sed1line_nl.html
  French      - http://sed.sourceforge.net/sed1line_fr.html
  German      - http://sed.sourceforge.net/sed1line_de.html
  Italian     - (pending)
  Portuguese  - http://sed.sourceforge.net/sed1line_pt-BR.html
  Spanish     - (pending)


FILE SPACING:

 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
&lt;/pre&gt;</description>
    <dc:creator>sed-users&lt; at &gt;yahoogroups.com</dc:creator>
    <dc:date>2013-01-01T22:15:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.editors.sed.user/5886">
    <title>.arff file</title>
    <link>http://comments.gmane.org/gmane.editors.sed.user/5886</link>
    <description>&lt;pre&gt;hi there!

want to convert a database file from .arff to .csv on the terminal since I use a mac OX. 
Any clue?

BR, Etoiles
&lt;/pre&gt;</description>
    <dc:creator>Les 5 en Or</dc:creator>
    <dc:date>2012-12-16T21:54:03</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.editors.sed.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.editors.sed.user</link>
  </textinput>
</rdf:RDF>
