Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fub!uniol!Gerhard.Moeller From: Gerhard.Moeller@arbi.informatik.uni-oldenburg.de (Gerhard Moeller) Newsgroups: comp.unix.questions Subject: Re: sed/grep problems Message-ID: <4615@uniol.UUCP> Date: 13 Feb 91 14:35:40 GMT References: <1991Feb13.115717.1339@iesd.auc.dk> Organization: University of Oldenburg, Germany Lines: 27 claus@iesd.auc.dk (Claus S. Jensen) writes: > I'm looking for a way to do some things concerning the tab-symbol. >1) I would like to find occurences of tab (\t) in a file. > grep "\t" doesn't work. >2) And I would like to use sed to replace these tabs with > spaces. > sed -e "s/\t/ /g" doesn't work. Use the instead of \t. But... if it doesn't accept the , you have to write a file with: sed 's/ /bla/g' < $1 > $1.bla It's tested on SVR3.2 We have joy we have fun we have pucman for the sun. gerhard. -- +---------------------------< principiis obsta! >---------------------------+ | Gerhard Moeller, Teichstrasse 12, 2900 Oldenburg (FRG) [Geb. 02/21/68] | | inhouse: faramir!gemoe uucp: ...(unido!)uniol!gmoeller | |DOMAIN: gerhard.moeller@arbi.informatik.uni-oldenburg.de | |BITNET: gmoeller%arbi.informatik.uni-oldenburg.de@DOLUNI1 (106495@DOLUNI1) | +-----------------------> the medium is the message <-----------------------+