On Sunday 08 June 2008 17:23, Alexandre Conrad wrote: > Hi, > > I'm having a hard time to figure out how to represent the tab character > in my regular expression pattern using sed: > > this works fine: > cat foo.txt | sed 's/foo/bar/' > > this doesn't interpret the tab: > cat foo.txt | sed 's/\tfoo/\tbar/' > > I've been reading the FAQ and sed manual, I find nothing. I tried with > the "-r" option for sed described as "Use extended regular expression > syntax". > > This works just fine under the "normal" sed. Any ideas ? Thanks.
Which version of busybox is yours? Mine works: # cat Makefile | ./busybox sed 's/\t/\BOO!/' | grep BOO! | head -10 BOO!$(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ BOO!KBUILD_SRC=$(CURDIR) \ BOO!KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile $@ srctreeBOO! := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR)) TOPDIRBOO! := $(srctree) objtreeBOO! := $(CURDIR) srcBOO! := $(srctree) objBOO! := $(objtree) VPATHBOO! := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD)) BOO! -e s/arm.*/arm/ -e s/sa110/arm/ \ -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
