HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  Log in  
openFate
openFATE - openSUSE feature tracking
Similar topics
Latest topics
» Difference between 42.2 and 42.1
by findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
by findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
by findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
by bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
by bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
by 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.

Share | 
 

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

View previous topic View next topic Go down 
AuthorMessage
FeatherMonkey
Old Regular
avatar

Posts : 41
Join date : 2010-02-25

PostSubject: Regexp hate(Awk Sed)...! Any ideas?   Wed 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?
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» I need a hobby..any ideas?
» The 'I hate Akanishi Jin' thread
» Drawing Contest!
» The "I Dislike Nagasawa Masami" Thread
» Minecraft Mod Idea

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