I don't know how to do it with grep but you can use perl to make a really simple grep like program that will allow tabs. \t is the perl regex for tab.
just save and chmod it and use it like grep.Code:#!/usr/bin/perl -w # use strict; my($pattern, $filename) = @ARGV; open (FIND, $filename) || die "Can't open filename: $!"; while (<FIND> ) { $pattern =~ s/\"//g; if(/$pattern/) { print $_; } } exit 0;
./program pattern filename
[ 18 April 2002: Message edited by: debiandude ]




Reply With Quote