Re: A general sed question

2009-10-07 Thread George Davidovich
On Tue, Oct 06, 2009 at 11:45:36PM -0700, David Allen wrote: > I keep bumping up against this, so I thought I'd throw this question out > to those who understand sed better than I do. > > What I'm trying to do is to clean up the contents of some files > (/sys/i386/conf/GENERIC would be a good exam

Re: A general sed question

2009-10-07 Thread Oliver Fromme
David Allen wrote: > I keep bumping up against this, so I thought I'd throw this question out > to those who understand sed better than I do. > > What I'm trying to do is to clean up the contents of some files > (/sys/i386/conf/GENERIC would be a good example) to get more readable > diffs.

Re: A general sed question

2009-10-07 Thread Nerius Landys
Uh, I know I'm stating the obvious, but you might try these 2 techniques to enhance your diff experience: 1. Use "diff -w". 2. Do "cat filename | sort > filename.sorted" for both files you are diffing, and then compare both sorted files. ___ freebsd-ques

A general sed question

2009-10-06 Thread David Allen
I keep bumping up against this, so I thought I'd throw this question out to those who understand sed better than I do. What I'm trying to do is to clean up the contents of some files (/sys/i386/conf/GENERIC would be a good example) to get more readable diffs. To that end, I'm trying to use sed to