[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/1.4.2.1i |
> I think this is the best way. Just replace
>
> diff -B -b -w file.list - << EOF
> 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
EOF
which worked, after I removed the blank lines from the
'blah blah' section.
Is the perl thingy acceptable?
-Jason
--
address@hidden
SDF Public Access UNIX System - http://sdf.lonestar.org