On Wed, Oct 27, 2010 at 07:10:55PM -0600, Chad Perrin wrote:
On Wed, Oct 27, 2010 at 06:04:50PM -0700, Gary Kline wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
perl -e 'while () { s/$/\n/; print; }'
You could
On Wed, Oct 27, 2010 at 07:29:25PM -0600, Chad Perrin wrote:
On Wed, Oct 27, 2010 at 06:14:04PM -0700, Nerius Landys wrote:
You mean replace each newline character with two newline characters?
perl -p -i -e 's/\n/\n\n/g' yourfile.txt
Hm. Didn't think of perl; but yeah.
The g
Chad Perrin per...@apotheon.com wrote:
Plus . . . I like pie.
A bit out of season, aren't we? It's nowhere near 1 minute before 2
on March 14.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
From: Gary Kline kl...@thought.org
To: FreeBSD Mailing List freebsd-questions@freebsd.org
Cc:
Subject: okay, time to ask the wizards.
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
have you tried something as simple
On Thu, 2010-10-28 at 15:18 +1030, Wayne Sierke wrote:
On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
snip
In this particular case however, sed does
On Thu, Oct 28, 2010 at 03:18:02PM +1030, Wayne Sierke wrote:
On Wed, 2010-10-27 at 18:16 -0700, Liontaur wrote:
On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each
On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote:
From: Gary Kline kl...@thought.org
To: FreeBSD Mailing List freebsd-questions@freebsd.org
Cc:
Subject: okay, time to ask the wizards.
I've got a very large file with paragraphs separated only by \n.
How do I put
On Thu, 2010-10-28 at 09:31 -0700, Gary Kline wrote:
On Thu, Oct 28, 2010 at 08:18:06AM -0500, Robert Bonomi wrote:
From: Gary Kline kl...@thought.org
To: FreeBSD Mailing List freebsd-questions@freebsd.org
Cc:
Subject: okay, time to ask the wizards.
I've got a very large
, time to ask the wizards.
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
have you tried something as simple as
sed -e 's/\n//' infile outfile
-or-
awk '{print; print ;}' infile
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
--
Gary Kline kl...@thought.org http://www.thought.org Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
You mean replace each newline character with two newline characters?
perl -p -i -e 's/\n/\n\n/g' yourfile.txt
Something like that?
On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line
On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
Perhaps using sed? i'm definitely no sed expert but the substitute command
would work, just substitute one \n
On Wed, Oct 27, 2010 at 06:04:50PM -0700, Gary Kline wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
perl -e 'while () { s/$/\n/; print; }'
You could also open the file in vi or Vim and give it this command:
On Wed, Oct 27, 2010 at 06:14:04PM -0700, Nerius Landys wrote:
You mean replace each newline character with two newline characters?
perl -p -i -e 's/\n/\n\n/g' yourfile.txt
The g in that is unnecessary. I'd also be inclined to use $ in the
matching part of that regex than \n, and only
On Wed, 2010-10-27 at 18:16 -0700, Liontaur wrote:
On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline kl...@thought.org wrote:
I've got a very large file with paragraphs separated only by \n.
How do I put a blank line _after_ each newline?
Perhaps using sed? i'm definitely no sed expert but
15 matches
Mail list logo