Results 1 to 2 of 2

Thread: help with sed

  1. #1
    Join Date
    Mar 2004
    Posts
    11

    Unanswered: help with sed

    Hello everyone,
    I have a file containing:
    River_basin Varchar2(70)
    Site Varchar2(70)


    I need to delete everything after the first column(variables) using sed
    i.e. I need to get just the first column :
    River_basin
    Site



    Thanks in advance,

  2. #2
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    Try this :
    Code:
     sed 's/[[:space:]]\+.*$//' inputfile
    Jean-Pierre.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •