[NTLUG:Discuss] Need help debugging simple script commands
Rick Matthews
RedHat.Linux at verizon.net
Thu Aug 1 05:05:07 CDT 2002
> man sed?
Oh yes, I've 'man sed' many times during this process!
> It's hard to tell what your garbage is without seeing it.
Yes sir, I believe you've hit on my point here. As mentioned earlier:
> > each time I've found trash I've added a step to clean out
> > that problem.
If I knew what the garbage was this would be a completely different
discussion. The file is about 420,000 lines and 6.5 meg in size. I
didn't know what trash was in there, or even if there *was* any
trash in there. Since the -i allowed sort to remove the dups I'm
assuming that trash *is* the problem, but I still don't know
what the trash is (or how much of it there is).
I'd appreciate any ideas you might have.
Rick
> -----Original Message-----
> From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
> Of Rev. wRy
> Sent: Wednesday, July 31, 2002 10:46 PM
> To: discuss at ntlug.org
> Subject: RE: [NTLUG:Discuss] Need help debugging simple script commands
>
>
> On Wed, 2002-07-31 at 22:37, Rick Matthews wrote:
>
> > That confirms for me that the problem is trash in the data. As I
> > mentioned earlier, each time I've found trash I've added a step to
> > clean out that problem. So far it's blank lines, trailing spaces and
> > trailing tabs. Can anyone tell me how to clean the file of all
> > characters that are invalid in a domain name?
>
> man sed? It's hard to tell what your garbage is without seeing it.
>
> You might post an example of your files (showing garbage) to
> comp.unix.shell - they seem to enjoy a good sed challenge. :)
>
> Ry
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list