Re: I'm an idiot and sed proves it...

1997-11-30 Thread Manoj Srivastava
Hi, Perl is your friend (tested solution). % perl -pli~ -e 's/\t/ /og' filename manoj -- I have five dollars for each of you. Bernhard Goetz Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12

Re: I'm an idiot and sed proves it...

1997-11-28 Thread Rick Hawkins
Dale wrote, It seems that none of the solutions presented allowed sed to find and replace the -newline character pair. Now that it's phrased that way, a memory arises. I was trying to make filters to make articles posted to a mailing list readable a while back (my ISN hardware would freeze

Re: I'm an idiot and sed proves it...

1997-11-27 Thread Craig Sanders
On Wed, 26 Nov 1997, Dale Scheetz wrote: And this may allow me to deal with the hyphons at the end of the lines. I can do one pass through sed replacing new lines with \n, and then make another pass editing out all the '-\n'. I am still left with the problem of converting all the other '\n'

Re: I'm an idiot and sed proves it...

1997-11-27 Thread Dale Scheetz
Well, it's time to sum up the efforts of all you good folks out there who tried to relieve my ignorance. I want to thank you all for the information (even Aaron was helpful) you imparted and the spirit of helpfulness for what was clearly an off topic post. First cntrl-v is a very nice new trick

Re: I'm an idiot and sed proves it...

1997-11-27 Thread Craig Sanders
On Wed, 26 Nov 1997, Joost Kooij wrote: Before people start flooding this thread with nifty perl one-liners, I would really like to see how this is done with sed. oops. too late. no script-language-religious-war intended, though. i use perl and sed and think they're both great. i'd also like

Re: I'm an idiot and sed proves it...

1997-11-27 Thread Eloy A. Paris
Dale Scheetz [EMAIL PROTECTED] wrote: : You are absolutely correct, and as a developer I should probably know : better. My only excuse is that I spend a lot of time on this list, and : consider the folks here my friends. This leaves little time to go : exploring other venues, and besides, I'd

I'm an idiot and sed proves it...

1997-11-26 Thread Dale Scheetz
I've been trying to use sed to do some editing of simple characters from a large block of ascii text. The text has tabs that I wish to replace with spaces, and hyphonated words wrapped across linefeeds that I also wish to remove. For the tabs, I try the following: sed -e 's/'\t'/ /g'

I'm an idiot and sed proves it...

1997-11-26 Thread Aaron Denney
[EMAIL PROTECTED] wrote: For the tabs, I try the following: sed -e 's/'\t'/ /g' infile outfile Which very cleanly places every t in the document with a space!?? For the hyphonation I try: sed -e 's/-'\n'//g' infile outfile and although the file gets slightly smaller (I

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Dale Scheetz
On Wed, 26 Nov 1997, Aaron Denney wrote: [EMAIL PROTECTED] wrote: sed -e 's/-'\n'//g' infile outfile and although the file gets slightly smaller (I didn't try to find out just what had been removed) none of the hyphonated text is corrected. This isn't quite the appropriate venue

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Alex Goncharov
Resent-Cc: recipient list not shown: ; X-Envelope-Sender: [EMAIL PROTECTED] Date: Wed, 26 Nov 1997 12:02:04 -0500 (EST) From: Dale Scheetz [EMAIL PROTECTED] cc: debian-user@lists.debian.org Resent-From: debian-user@lists.debian.org X-Mailing-List: debian-user@lists.debian.org

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Charles Oliver
Dale Scheetz [EMAIL PROTECTED] wrote I've been trying to use sed to do some editing of simple characters from a large block of ascii text. The text has tabs that I wish to replace with spaces, and hyphonated words wrapped across linefeeds that I also wish to remove. For the tabs, I try

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Joost Kooij
On Wed, 26 Nov 1997, Dale Scheetz wrote: Personally, I find the off topic threads on this list are often very interesting. I almost always learn some new twist or trick that I had not seen before, so it is my hope that, when I have problems, the solution may be valuable to others as well. I

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Dale Scheetz [EMAIL PROTECTED] wrote: I've been trying to use sed to do some editing of simple characters from a large block of ascii text. The text has tabs that I wish to replace with spaces, and hyphonated words wrapped across linefeeds that I also wish to remove.

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Nathan E Norman
On Wed, 26 Nov 1997, Dale Scheetz wrote: : On Wed, 26 Nov 1997, Aaron Denney wrote: : : [EMAIL PROTECTED] wrote: : sed -e 's/-'\n'//g' infile outfile : : and although the file gets slightly smaller (I didn't try to find out just : what had been removed) none of the hyphonated text is

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Brian K Servis
Nathan E Norman writes: On Wed, 26 Nov 1997, Dale Scheetz wrote: : On Wed, 26 Nov 1997, Aaron Denney wrote: : : [EMAIL PROTECTED] wrote: :sed -e 's/-'\n'//g' infile outfile : : and although the file gets slightly smaller (I didn't try to find out just : what had been removed) none

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Oliver Elphick
Dale Scheetz wrote: On Wed, 26 Nov 1997, Aaron Denney wrote: Your problem is that the inner quotes don't add another level quoting, but take away another level of quoting. To be a little clearer: sed -e 's/'\t'/ /g' infile outfile ^^ are the quoted

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Stephen Zander
Aaron Denney wrote: [EMAIL PROTECTED] wrote: For the tabs, I try the following: sed -e 's/'\t'/ /g' infile outfile Which very cleanly places every t in the document with a space!?? For the hyphonation I try: sed -e 's/-'\n'//g' infile outfile and although the

on/off topic(was Re: I'm an idiot and sed proves it...)

1997-11-26 Thread Brian K Servis
Dale Scheetz writes: On Wed, 26 Nov 1997, Aaron Denney wrote: [EMAIL PROTECTED] wrote: sed -e 's/-'\n'//g' infile outfile and although the file gets slightly smaller (I didn't try to find out just what had been removed) none of the hyphonated text is corrected. This isn't quite

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Dale Scheetz
Thank you all for the many kind replies. Many of you pointed out my mistake as did Oliver, which stems from a poor reading of the sed man page. I blindly looked for tab and found a table of backslashed characters and their equivalents. On second reading I discover that these are the output

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Stephen Zander
Dale Scheetz wrote: The ctrl-v works fine for a tab, but I have no newline key on my keyboard, only an enter (which produces ^M when pressed after ctrl-v and the search fails). Is there a way to enter a character by giving its ascii value (in dos the alt key lets you enter the decimal value to

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Britton
On Wed, 26 Nov 1997, Dale Scheetz wrote: I've been trying to use sed to do some editing of simple characters from a large block of ascii text. The text has tabs that I wish to replace with spaces, and hyphonated words wrapped across linefeeds that I also wish to remove. For the tabs, I

Re: I'm an idiot and sed proves it...

1997-11-26 Thread Aaron Denney
Stephen Zander wrote: Aaron Denney wrote: This isn't quite the appropriate venue for such questions, as it is a general unix/sed question and not very specific to Debian. In the future try the newsgroup comp.unix.programmer or comp.unix.questions. Lignten up :) Dale provides immense