Re: count for the lines

From: William Park (opengeometry_at_yahoo.ca)
Date: 02/28/04

  • Next message: William Park: "Re: Any sugestions on learning REGEX?"
    Date: 28 Feb 2004 18:12:04 GMT
    
    

    suraj kumar <suraj_c@hotmail.com> wrote:
    > The content of the file is like that
    >
    > select * from Customers
    > select * from Orders
    > select * from Items
    > Select * from Customers
    > Select * from Customers
    > select * from HRdata
    > Select * from HRdata
    >
    > I want the output in such format
    >
    > select * from Customers 3
    > select * from HRdata 2
    > select * from Orders 1
    > select * from Items 1

    man uniq

    -- 
    William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
    Linux solution for data management and processing. 
    

  • Next message: William Park: "Re: Any sugestions on learning REGEX?"

    Relevant Pages

    • Re: count for the lines
      ... Hash: SHA1 ... > Select * from Customers ... > select * from HRdata ...
      (comp.unix.shell)
    • Re: count for the lines
      ... suraj_c@hotmail.com (suraj kumar) wrote: ... > select * from Customers ... > select * from HRdata ... rearrange it with awk. ...
      (comp.unix.shell)
    • Re: count for the lines
      ... suraj kumar wrote: ... > select * from Customers ... > select * from HRdata ...
      (comp.unix.shell)