![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Awk Help
I have a file which looks somewhat like this
fsdfsdfsdfsdfsf sdfsdf fffhgf $$ fgsdfdsdfsf dfsdfsdfdsfd $ xvfsfsffsd $ fsdfsdfsd $ cvbvcbvcvbcvb $ ghggf hgfhgf gfhghgf $ $ sdfdfddsdf dfsdfdsfsdfdfdfff $$ Now I want to append all the lines ending with '$' to the very first line it meets ending wth $ traversing back . Eg here the o/p should look like this fsdfsdfsdfsdfsf sdfsdf fffhgf $$ fgsdfdsdfsf dfsdfsdfdsfd xvfsfsffsd fsdfsdfsd cvbvcbvcvbcvb $$ ghggf hgfhgf gfhghgf $ $ sdfdfddsdf dfsdfdsfsdfdfdfff $$ Can anyone help.... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|