Updated Was: LFS 5.0 sed and tar Now : bad interpreter

DJ Lucas dj at linuxfromscratch.org
Sat Sep 18 19:36:30 PDT 2004


Matthew Burgess wrote:
> 
> yup, there's a couple of sed expressions you can use:
> 
> http://www.student.northpark.edu/pemente/sed/sed1line.txt gives
> 
> ---
>  sed 's/.$//'               # assumes that all lines end with CR/LF
>  sed 's/^M$//'              # in bash/tcsh, press Ctrl-V then Ctrl-M
>  sed 's/\x0D$//'            # gsed 3.02.80, but top script is easier
> ---
> 
> Out of those, I've found the top one to be too dangerous because of
> the assumption mentioned - i.e. if you have _any_ unix file in the
> same directory then it'll simply delete the last character on every
> line.
> 
> Hope this helps
> 
> Matt.


Well, I don't think sed is gonna help just yet! ;-)  But, you might be 
lucky enough to be able to symlink /tools/lib > /lib and just maybe make 
the old sed work.  I don't know if it'd actually work or not...I've 
never tried it, but it's worth a shot.

-- DJ Lucas



More information about the lfs-support mailing list