[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bsd diff bug

From: Jason Stover
Subject: Re: bsd diff bug
Date: Fri, 7 Oct 2005 18:36:57 +0000
User-agent: Mutt/

> I think this is the best way.  Just replace 
>  diff -B -b -w file.list - << EOF
> with something like
>  diff file.list - << EOF
> EOF | sed -e 's/^[\t ]*$//'

The 'EOF' no longer closes correctly (sh doesn't like anything but a
newline character after the EOF). I tried this:

perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list 
diff -b file.list - <<EOF 
        blah blah

which worked, after I removed the blank lines from the 
'blah blah' section.

Is the perl thingy acceptable? 


SDF Public Access UNIX System -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]