Re: sed question

From: Johan Braennlund (johan_brn_at_yahoo.com)
Date: 08/31/03

  • Next message: Mariano Kamp: "Re: Any project for turning linux into a hd video recorder?"
    To: debian-user@lists.debian.org
    Date: Sun, 31 Aug 2003 16:10:09 +0200 (CEST)
    
    

    In article <qzF1.2Vz.17@gated-at.bofh.it> you wrote:
    > I tried:
    > cat temp | sed 's/^[[:alpha:]]*[[:space:]]*//' > log

    > Where temp is:

    > test.wilderness.org.au/about_us/whatistwsck
    > 203.48.59.163 - - [26/Aug/2003 08:14:01] "GET
    > http://test.wilderness.org.au/about_us/whatistws HTTP/1.0" 200 20872 "-"
    > "Dillo/0.7.3" TCP_MISS:DIRECT

    > but that just removes the test from .wilderness....

    If you don't mind using awk instead of sed, try

    cat temp |awk '$1="";{print}'

    Regards,

    Johan

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Mariano Kamp: "Re: Any project for turning linux into a hd video recorder?"

    Relevant Pages

    • Re: getting rid of openssl port
      ... Regards, Johan ... To unsubscribe, ...
      (freebsd-questions)
    • Re: o/t Its been great fun
      ... Regards ... > Well Im going to unsubscribe from the ng later, ... > competitions, or tales of greed, because I really don't agree with people ...
      (uk.rec.competitions)
    • Re: [SLE] SPAM: Test
      ... And why send regards? ... before posting to the list. ... To unsubscribe, send an email to ... My incoming spam to my list address ...
      (SuSE)
    • Re: awk and date command
      ... awk -v DT=`date +%Y%m%d` program.awk record.txt ... Country: Australia ... Text or chat with friends inside Yahoo! ... To unsubscribe: ...
      (Fedora)
    • Re: awk and date command
      ... but i don't know how to put the hostname in awk ... Text or chat with friends inside Yahoo! ... To unsubscribe: ...
      (Fedora)