bug-gnu-utils
[Top][All Lists]
Advanced

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

grep


From: BryanS
Subject: grep
Date: Fri, 11 May 2001 16:01:42 -0400

Hello.  My name is Bryan Sillman, from the company "Standard Internet"

I saw your e-mail address in the man pages (we have it installed on a Linux box) and wanted to drop you a line about a problem I have.

I trying to use grep to find the exact byte position of a string in a file.

On a shell, I have a file called TEST.  In TEST, I have one line:
        ABCDE

And I tried to execute the command
grep -b D TEST

Which translate to:
  Grep command, Byte Offset Switch, Data Searched and File

When I run it, it returns:
address@hidden bid]# grep -b D TEST
0:ABCDE

Shouldn't this return the number "4", because "D" is the fourth byte in the file?

Sincerely,
Bryan Sillman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]