grep for a nuimber with a decimal point - please help

From: noob (noob_at_no.noo)
Date: 03/20/04

  • Next message: johnny bobby bee: "Re: directory to install progams?"
    Date: Fri, 19 Mar 2004 20:31:36 -0700
    
    

    hi, yes I know I am an idiot ; )

    I am having a problem searching for the string "8.0" because awk assumes the
    "." is a wildcard so it would return a line like this from sourcefile:

    12345678, username, 01/02/2004, 6.2, Colorado

    because there is an 8 with a 0 somewhere after it on the line.

    I only want it to return line with 8.0 like this:

    12345678, username, 01/02/2004, 8.0

    this is what I am trying, where $FF = 8.0

    awk '/ '$FF'/ {print$1,$2,$3,$4}' sourcefile

    and it returns any line that has an 8 somewhere before a 0

    additionally - can I have grep only search field 4 for my string?


  • Next message: johnny bobby bee: "Re: directory to install progams?"

    Relevant Pages

    • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
      ... Microsoft.Web.Services3.Security.Security security) ... throw new Exception("The username token is not present in the ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
      ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
      ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: Irritating INSERT INTO Error
      ... Password is a reserved word in Access 2000 SQL. ... LastName, EMail, UserName,, Address, City, State, Country) ... Public Sub AddRecord(ByVal FirstName1 As String, ... Dim oledbCmd As OledbCommand ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Irritating INSERT INTO Error
      ... Password is a reserved word in Access 2000 SQL. ... LastName, EMail, UserName,, Address, City, State, Country) ... Public Sub AddRecord(ByVal FirstName1 As String, ... Dim oledbCmd As OledbCommand ...
      (microsoft.public.dotnet.framework.aspnet)