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

Thomas Hackert thackert at nexgo.de
Sun Sep 19 00:25:33 PDT 2004


On Sunday 19 September 2004 04:36, DJ Lucas wrote:
> 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.
> > 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
There is also a tool called dos2unix, maybe this is worth a 
try ... ;)
CU
Thomas.

-- 
-----BEGIN GEEK CODE BLOCK Version: 3.12-----
GMU/O d--- s: a C++ UL+++ P+ L+++ E W+ N++ !o K w--
!O M-- !V PS+ PE Y+ PGP t-- !5 X R- tv- b+ DI++ D
G e* h+ r- y+
------END GEEK CODE BLOCK------



More information about the lfs-support mailing list