On Tue 22 Aug 2023, kasak wrote: > > I'm in trouble with sed! > > I need to insert tab in some places, but no luck :( > > in linux it works: > > [kasak@kasakoff ~]$ echo 'one two three' | sed s/two/\\ttwo/ > one two three > > in OpenBSD it just add t: > > kasak@OpenBSD:~$ echo 'one two three' | sed s/two/\\ttwo/ > one ttwo three
You can inject "raw" tabs with ctrl+v followed by a tab: $ echo 'one two three' | sed 's/two/ two/' one two three