It is currently Mon, 25 Sep 2023 12:20:30 GMT



 
Author Message
 sed/grep problems

  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" <file> doesn't work.

2) And I would like to use sed to replace these tabs with
   spaces.
   sed -e "s/\t/   /g" <file> doesn't work.

  If anybody know anything about this please answer the questions.

     Claus S.Jensen

--
########################################################################
#  Claus S.Jensen , cl...@iesd.auc.dk # Superman on Deep Trouble MUD   #
#  University of Aalborg, Denmark     # krikand.iesd.auc.dk 2000       #
########################################################################



 Sun, 01 Aug 1993 19:57:17 GMT   
 sed/grep problems
cl...@iesd.auc.dk (Claus S. Jensen) writes:

Use the <tab> instead of \t.
But... if it doesn't accept the <tab>, 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.moel...@arbi.informatik.uni-oldenburg.de                   |
|BITNET: gmoeller%arbi.informatik.uni-oldenburg.de@DOLUNI1 (106495@DOLUNI1) |
+-----------------------> the medium is the message <-----------------------+



 Sun, 01 Aug 1993 22:35:40 GMT   
 
   [ 2 post ] 

Similar Threads

1. speed using grep/sed/wc/awk/shell_built_in to find number of lines

2. Complied Binaries of GNU versions of awk, sed and grep for Solaris 2.6

3. Sed, Grep and AWK

4. Quick bash shell script awk, sed, grep question

5. another grep or sed question

6. sed and grep trouble

7. sed, grep and Latex...

8. another grep or sed question

9. simple sed and grep question...


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software