[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Outputting tabs with sed



In message <[🔎] Pine.LNX.3.96.970806230711.374B-100000@localhost>, writes:
  >
  > How can I output tabs with sed?
  >
  > I need something like: `s/<insert tab here>/\t'
 
In theory, sed -e 's/<insert tab here>/	/'
                                       ^
                                       |
                                       tab char

should work, but it doesn't. I think that bash gets in the way when you
do it from the command line.

However, it works if you put the sed instruction in a file and use

   sed -f sedfile


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                                  http://lfix.co.uk/oliver

     Make it idiot-proof, and someone will breed a better idiot.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble?  e-mail to templin@bucknell.edu .


Reply to: