Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > sed split on pi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 16 Topic 11019 of 11531
Post > Topic >>

sed split on pipe

by pauliecat@[EMAIL PROTECTED] (Jack Butchie) May 6, 2008 at 05:27 AM

Have been googling for some time now and every command I tried fails.  I 
want to use sed from the command line or use it in a windows batch file to

split on a pipe delimited file, windows server. The examples  have \n as
the 
carriage return code, but all that happens is the pipe is replaced by the 
letter n.

the file has a space between each line

CALL|TITLE|URL LINK|

CALL|TITLE|URL|LINK
----- Original Message ----- 
From: "Chas. Owens" <chas.owens@[EMAIL PROTECTED]
>
To: "Dr.Ruud" <rvtol+news@[EMAIL PROTECTED]
>
Cc: <beginners@[EMAIL PROTECTED]
>
Sent: Sunday, May 04, 2008 5:00 PM
Subject: Re: another help on input record separator clarity please


> On May 4, 2008, at 17:01, Dr.Ruud wrote:
> snip
>>> Ah-ha, perlre is wrong then. It claims that space is 'A GNU extension
>>> equivalent to [ \t] , "all horizontal whitespace"', but that must 
only
>>> be true under the bytes pragma.
>>
>> s/claims that space is/claims that blank is/
>>
>> Be careful with using the byte pragma in that way, because it modifies
>> the behaviour of strings that have the utf8 flag on, which means you 
are
>> depending on the internal way that your perl executable implements
>> strings, IOW asking for trouble.
> snip
>
> Geeze, that is the second time I have misread things.  I obviously  need

> more sleep.
>
> snip
>>> It's perlbug time.
>>
>> There are many voices that want to change the meaning of \d to [0-9]
>> only (from Perl 5.12 on).
>>
>> Maybe we should get a \pd to be a shortcut for \p{IsDigit}. (idem  for
D,
>> s, S, w, W, etc.)
> snip
>
> I was referring to what I thought was an error in the docs, not an 
issue 
> with what it matched; however, I do have an issue with \d.  It  makes 
> dealing with numbers you can do math with a pain in the tuckus  ([0-9]
vs 
> \d).
>
> --
> Chas. Owens
> wonkden.net
> The most im****tant skill a programmer can have is the ability to read.
>
>
> -- 
> To unsubscribe, e-mail: beginners-unsubscribe@[EMAIL PROTECTED]
> For additional commands, e-mail: beginners-help@[EMAIL PROTECTED]
> http://learn.perl.org/
>
>
 




 16 Posts in Topic:
another help on input record separator clarity please
rich.japh@[EMAIL PROTECTE  2008-05-02 17:55:58 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-02 17:58:47 
Re: another help on input record separator clarity please
rich.japh@[EMAIL PROTECTE  2008-05-02 18:21:32 
Re: another help on input record separator clarity please
rvtol+news@[EMAIL PROTECT  2008-05-03 00:32:22 
Re: another help on input record separator clarity please
rvtol+news@[EMAIL PROTECT  2008-05-03 12:40:34 
Re: another help on input record separator clarity please
jhoblitt@[EMAIL PROTECTED  2008-05-02 11:08:27 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-02 20:04:43 
Re: another help on input record separator clarity please
rich.japh@[EMAIL PROTECTE  2008-05-02 21:48:41 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-03 04:26:34 
Re: another help on input record separator clarity please
jhoblitt@[EMAIL PROTECTED  2008-05-02 11:26:06 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-03 16:41:18 
Re: another help on input record separator clarity please
rvtol+news@[EMAIL PROTECT  2008-05-04 20:25:44 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-04 15:42:43 
Re: another help on input record separator clarity please
rvtol+news@[EMAIL PROTECT  2008-05-04 23:01:08 
Re: another help on input record separator clarity please
chas.owens@[EMAIL PROTECT  2008-05-04 19:00:38 
sed split on pipe
pauliecat@[EMAIL PROTECTE  2008-05-06 05:27:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:57:06 CDT 2008.