Re: prob relating sed



"JyotiC" <jyoti.chhabra@xxxxxxxxx> writes:

hi,

nlmconv$(EXEEXT): $(nlmconv_OBJECTS) $(nlmconv_DEPENDENCIES)
srconv$(EXEEXT): $(srconv_OBJECTS) $(srconv_DEPENDENCIES)
sysdump$(EXEEXT): $(sysdump_OBJECTS) $(sysdump_DEPENDENCIES)
coffdump$(EXEEXT): $(coffdump_OBJECTS) $(coffdump_DEPENDENCIES)
dlltool$(EXEEXT): $(dlltool_OBJECTS) $(dlltool_DEPENDENCIES)
windres$(EXEEXT): $(windres_OBJECTS) $(windres_DEPENDENCIES)
dllwrap$(EXEEXT): $(dllwrap_OBJECTS) $(dllwrap_DEPENDENCIES)
size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES)
Well, I'm not sure I remember your original question, but if you want
to remove '$(EXEEXT)' use

sed 's/$(EXEEXT)//'

I just don't want to remove '$(EXEEXT)', i want to remove everything
after nlmconv from the first line n so forth.

Do you mean you want to remove everything after the $(EXEEXT)? - from their to the end of the line?
That's

sed 's/$(EXEEXT).*$//'


just add
.*$
to match anything up to the end of the line.


--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
.



Relevant Pages

  • Re: Harbor Freight coupon
    ... Sending unsolicited commercial e-mail to this account incurs a fee of ... and acknowledges the legality of this contract. ...
    (rec.crafts.metalworking)
  • Re: sorting an ls -l by date
    ... Sending unsolicited commercial e-mail to this account incurs a fee of ... and acknowledges the legality of this contract. ...
    (comp.unix.shell)
  • Re: Shepherd crook
    ... Sending unsolicited commercial e-mail to this account incurs a fee of ... and acknowledges the legality of this contract. ...
    (rec.woodworking)
  • Re: Harbor Freight coupon
    ... Sending unsolicited commercial e-mail to this account incurs a fee of ... and acknowledges the legality of this contract. ...
    (rec.crafts.metalworking)
  • Re: is this Gloat worthy?
    ... Sending unsolicited commercial e-mail to this account incurs a fee of ... and acknowledges the legality of this contract. ...
    (rec.woodworking)