SUSEUnbound
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  
openFate
Regexp hate(Awk Sed)...! Any ideas? Fatelogo_small openFATE - openSUSE feature tracking
Similar topics
    Latest topics
    » Difference between 42.2 and 42.1
    Regexp hate(Awk Sed)...! Any ideas? Emptyby findoctr Thu Dec 15, 2016 7:53 pm

    » openSUSE Leap 42.1 ?
    Regexp hate(Awk Sed)...! Any ideas? Emptyby findoctr Fri Feb 05, 2016 8:09 pm

    » Happy Turkey Day
    Regexp hate(Awk Sed)...! Any ideas? Emptyby findoctr Thu Nov 26, 2015 1:45 pm

    » Happy 4th of July!
    Regexp hate(Awk Sed)...! Any ideas? Emptyby bozo Sat Jul 04, 2015 12:56 pm

    » It's been a while ...
    Regexp hate(Awk Sed)...! Any ideas? Emptyby bozo Mon Feb 23, 2015 8:34 pm

    » Mondo chillers
    Regexp hate(Awk Sed)...! Any ideas? Emptyby bozo Wed Feb 18, 2015 5:11 am

    Navigation
     Portal
     Index
     Memberlist
     Profile
     FAQ
     Search
    IRC Channel
    You can also find us on IRC's freenode.net as #suseunbound.

     

     Regexp hate(Awk Sed)...! Any ideas?

    Go down 
    AuthorMessage
    FeatherMonkey
    Old Regular
    FeatherMonkey


    Posts : 41
    Join date : 2010-02-25

    Regexp hate(Awk Sed)...! Any ideas? Empty
    PostSubject: Regexp hate(Awk Sed)...! Any ideas?   Regexp hate(Awk Sed)...! Any ideas? EmptyWed Mar 10, 2010 8:58 am

    Code:
    G:     
    sentence_to_join
    OK I can get this to work by
    Code:
    sed '/G:\s*$/ {
    N
    s#G:\s*\n#G: #
    }'

    This works but I don't want.
    Code:
    G: 12.34.56 more stuff

    So I think I can either do this with a not next line begins numerical in the sed i.e !^[0-9] ... But how?

    Or my other thought was to search after for G:\s[0-9] but how do I then turn that into a newline in between the pattern? to end up with
    Code:
    G:
    12.34.56 more stuff
    Back to top Go down
     
    Regexp hate(Awk Sed)...! Any ideas?
    Back to top 
    Page 1 of 1
     Similar topics
    -
    » Looking for ideas on a weird hard disk problem.

    Permissions in this forum:You cannot reply to topics in this forum
    SUSEUnbound :: Help Section :: General Help-
    Jump to: