[solved] sed help

i want this  'N;s/\n/ /;P;D;'     to go into a file but when i try it comes out as this  'N;s/ / /;P;D;'
how can i make the \n copy over, i've tried searching but no luck.
Last edited by moofly (2012-09-03 04:12:25)

input
comm -13 '\''/home/ryan/Computer Backup/main/main programs'\'' '\''/home/ryan/Computer Backup/backup/backup programs'\'' | sed '\''1isudo pacman -Runs'\''| sed '\''N;s/\n/ /;P;D;'\'' | sed '\''N;s/\n/ /;P;D;'\'' | sed '\''N;s/\n/ /;P;D;'\'' | sed '\''N;s/\n/ /;P;D;'\'' | sed '\''N;s/\n/ /;P;D;'\'' > '\''/home/ryan/Computer Backup/backup/backup remove'\''
output
comm -13 '/home/ryan/Computer Backup/main/main programs' '/home/ryan/Computer Backup/backup/backup programs' | sed '1isudo pacman -Runs'| sed 'N;s/\n/ /;P;D;' | sed 'N;s/ / /;P;D;' | sed 'N;s/ / /;P;D;' | sed 'N;s/ / /;P;D;' | sed 'N;s/ / /;P;D;' > '/home/ryan/Computer Backup/backup/backup remove'
all the
'N;s/ / /;P;D;'
in the output are supposed to be
'N;s/\n/ /;P;D;'
thats not everything that goes into the file but its the section im having trouble with. Since thats not everything, i don't think echo will work unless i can choose where to put the text. If i can choose where to put the text let me know.
Last edited by moofly (2012-09-03 03:47:48)

Similar Messages

  • [SOLVED] sed help please...

    I'm trying to modify an XFWM theme, and need to run sed to replace colors with a phrase to make it "blend in" with the GTK theme. Unfortunately, it isn't working. Can anyone help?
    Here is what I am trying to run:
    sed -e 's/\#E6E6E6/\#E6E6E6 s active_color_2/g' *-active.xpm
    The result of that gives me something similar to running cat *-active.xpm.
    Last edited by smartboyathome (2009-03-25 21:49:53)

    the above should work but i'd script it:
    edit that, the above will work and will work better, faster and more efficiently...
    but i'd still script it
    #!/bin/bash
    find ./ -name '*-active.xpm' | while read file; do
    cp $file $file.orig
    cat $file | sed 's/\#E6E6E6/\#E6E6E6 s active_color_2/g' > temp
    mv temp $file
    done
    Last edited by brisbin33 (2009-03-25 21:39:20)

  • After update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help

    after update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help 

    Connect your phone to iTunes on your computer like the diagram has indicated and restore the phone

  • "Solved" and "Helpful" options

    I've been posting on here for a while now, mostly offering help to others, rather than asking questions.
    Mostly I can work through issues myself.
    Recently I helped a poster and actually solved a problem, by their own admission. However they didn't tick the options "Solved" or "Helpful" so I prompted them to do so.
    My request for them to do so was removed by moderators.
    I do not feel this is constructive and more effort should be put in by the moerator to make the forum work correctly and to give people like myslef more incentive to carry on helping people where possible.
    Obviously it's always nice to be able to solve an issue somebody is having, that's actually the business I'm in, but I think it's unreasonable to see that people aren't using the points system and then not allowing that fact to be brought to their attention.
    I help...they say I've helped...my profile increases...everyone is happy.

    Dave --
    IMHO, this iteration of the AD Boards (last 4-5 years or so, since Jive), has been evolving ever since it was established.
    The Hosts rarely respond directly to concerns, but they do pay attention.
    There have been lots of improvements made that came from the posters here.
    I believe that the "new" version of the AD Boards will more effectively encourage posters to remember to become more active in awarding ratings. Have you read this post by Eric W, at the top of the Feedback Forum Start Page? http://discussions.apple.com/thread.jspa?threadID=2540747
    +- Score!+
    +It’s Easy to Earn your Apple Support Communities Rep. +
    +The Apple Support Communities reputation system helps increase community participation. When you recognize another community member for providing helpful advice or a solution to a question, you help increase his or her status level within the community. And they can do the same for you. While it may be better to give (an answer) than to receive (reputation points), at Apple Support Communities, rewards come in both forms.+
    +Want Status? Answer. Recognize. Reward. Learn More.+

  • [Solved]Sed pattern matching help

    Ok I have a file like:
    foo
    cloo
    zoo
    And I want to have a script where: If it finds a line "foo" in a file, I want it to change the file to be:
    foo bar
    cloo
    zoo
    However, if the file already has "bar" appended to the line (as per the second example above), I want it to ignore the line.
    A sed line:
    sed -i '/foo/ s/$/ bar/' ~/myfile
    Will do the trick as far as appending " bar" to lines that say "foo"
    but it will also append " bar" to lines that already say "foo bar"
    What I need is code that will look for lines that say "foo" and append the " bar", but ignore instances where the " bar" has already been appended.
    In English: Find lines that start with "foo" but do not include " bar" and append bar to the end of the line.
    I am not married to using sed, but it needs to be something I can toss into a bash script and run.  This seems simple, but hours later...
    Thanks
    Last edited by andrekp (2013-10-03 19:31:53)

    Thanks for ALL of your help, everyone.  Works great.
    Just to show what I was REALLY doing, I run openbox with obmenu-generator and I was trying to have a special menu entry for certain programs that I use a lot so that I could find them easily and immediately.  This entailed creating a special category for the program in the respective /usr/share/applications/<program>.desktop file on the "Categories=" line.
    A typical line might read:
    Categories=GNOME;GTK;Office;Viewer;Graphics;2DGraphics;VectorGraphics;
    And I wanted to add my special category, "Favorites" at the end.  Leaving out lots of detail, this would allow me to have a special menu item for certain programs.  At first I just added it manually like:
    Categories=GNOME;GTK;Office;Viewer;Graphics;2DGraphics;VectorGraphics;Favorites
    but I found that the <program>.desktop file would get replaced on updates and overwrite my changes every so often.  So I figured I'd write a script to do the updating and just run that when I saw the need.
    And additional wrinkle was that some programs had the line by default as:
    Categories=GNOME;GTK;Office;Viewer;Graphics;2DGraphics;VectorGraphics;
    and others as:
    Categories=GNOME;GTK;Office;Viewer;Graphics;2DGraphics;VectorGraphics
    Note the final ; or lack thereof, so I had to account for that as well.  (Actually, I could ignore it and just add ;Favorites to the end, since the system ignored ";;" as being an error - but I wanted to do it cleanly.)
    My final code became:
    sudo sed -i 's/\(Categories.*\);$/\1/;/Favorites/! s/Categories.*$/&;Favorites/' /usr/share/applications/evince.desktop
    which first strips off the final ; if found on the Categories line, then adds ;Favorites to the end of that line.  I just created a line in a bash script for each program I wanted to form the favorites menu, as above.  Works well.  May or may not be the best way, but...
    Anyway, maybe this will give an idea helpful to someone else.   
    (Personally, I think it would be nice if the .desktop files, which are really just configuration files, should warn you when they overwrite, but that's probably a losing argument.)
    Thanks again,
    Andre

  • [SOLVED] Need Help with Sed

    Since I'm a dirty TF2 idler and I use Source Tools to idle, it uses a list of servers from a servers.txt file.
    A list of idling servers is here: http://tf2stats.net/blacklist_generate/ … ourcetools
    The list is in this format:
    {IP ADDRESS}:{PORT};{SERVER NAME}
    Unfortunately, I can't just save that as the list, because it thinks you're trying to send {SERVER NAME} as a command or something.
    There's ~920 lines that are just that and so I need to remove everything AFTER the port number (so it would be the colon and the server name).
    The tricky part is that not all ports are the same. 27015 is the standard, some use 27016, and some use other ones. So I need to have a sed command to remove everything past a colon on all lines, then remove the colon on all lines.
    And since I suck at sed, I've come crawling to the forums for help. So please, help.
    Last edited by Arm-the-Homeless (2010-04-05 23:47:19)

    Procyon wrote:@brisbin33: if you're going to redefine IFS, why not to :; with while read ip port name
    true story.  IFS=$'\n'; while read -r is just a habit i fall back on when i want to read [possibly inconsistent] lines out of a file.

  • [SOLVED] sed works in arch, but in os x it's different?

    Hello, I have a quick question about sed and using newlines.
    Say I have a file with one line in it like so:
    va.artofwarcentral.com
    I want to split each of the parts separated by periods into new lines.
    I used sed to do this:
    sed 's/\./\n/g' filename
    and it works without incident.  The output is this:
    va
    artofwarcentral
    com
    However, when I try this on OS X I get this unexpected output:
    vanartofwarcentralncom
    Am I mistaken in thinking that the newline character in OS X is \n ?  I have tried several different escape characters, and they all give me back the same thing...it ignores the escape and just prints the character.
    So, I guess my question is this:  am I doing something wrong or is this something that OS X is doing retardedly?  I know this might not be the best place to ask this since it's really more of an OS X question, but hopefully someone knows the answer.  I'm new to sed and regular expressions and all that jazz, so odds are I'm just doing something wrong.  Any help is appreciated.
    Last edited by jordanmthomas (2007-11-18 12:35:56)

    jordanmthomas wrote:
    Heh, sorry for posting it here.
    Anyway, to get around the issue I have just separated it with spaces and used awk to get each word out, which seems to work on Arch and OS X.
    So problem solved anyway now.
    If you are still interested, there is some relevant information here (see Hal Itosis' post(s) especially):
    http://forums.macosxhints.com/archive/i … 62778.html
    Summary:
    - update or change your version of sed
    - use Perl
    - use currently installed sed with some of the tricks supplied by Hal Itosis
    - or stick with what you already did.

  • Error messages when trying to mark response as "solved" or "helpful"

    For about 3 weeks I receive error messages when I try to mark any responses to my questions as "helpful" or "solved." I've posted the error message below.
    Is there a way for me to solve this? I have been unable to find contact info for a system admin.
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    Useful links :
    * Forum Home -- browse the forums here.
    * Search Forums -- visit the search page to query all forum content.

    The Hosts are aware of the problem and have posted an announcement at the top of this Forum, promising the problem will be fixed this week.

  • [SOLVED]sed: regex repeated pattern

    Hi all,
    Currently I'm struggling with bash script for automatic presorting and converting of photos from camera.
    While man page says that {} is repeated of previous pattern it does not work for me. Here is the example (basically I want extract year of the timestamp).
    % exiv2 20080930--DCIM/100CANON/IMG_0002.JPG| grep timestamp
    Image timestamp : 2008:05:09 10:25:02
    % exiv2 20080930--DCIM/100CANON/IMG_0002.JPG| grep timestamp | sed 's@.*\([0-9]{4}\).*@\1@'
    Image timestamp : 2008:05:09 10:25:02
    % exiv2 20080930--DCIM/100CANON/IMG_0002.JPG| grep timestamp | sed 's@.*\([0-9]{3}\).*@\1@'
    Image timestamp : 2008:05:09 10:25:02
    And this one works
    % exiv2 20080930--DCIM/100CANON/IMG_0002.JPG| grep timestamp | sed 's@.*\([0-9][0-9][0-9][0-9]\).*@\1@'
    2008
    If I need repeated m times this is not acceptable. How to deal with this?
    Last edited by ogronom (2010-04-05 16:26:54)

    Escaping '{' and '}' helps:
    sed 's@.*\([0-9]\{4\}\).*@\1@'
    Last edited by karol (2010-04-05 16:24:22)

  • [SOLVED :)] Need help with adf table row selection

    Hi,
    In my application I am displaying results in a table. The DisplayRow property of table is set to Selected
    There are Next and Back buttons which help user to view details associated to the next/previous rows.
    I am using ADF 11g
    When user clicks Next or Previous button, then the selection of the row should also gets updated
    To achieve this i wrote below piece of code:
    this.tblS.getSelectedRowKeys().clear();+
    this.tblS.setRowIndex(count);+
    RowKeySet rks =  tblS.getSelectedRowKeys();+
    rks.add(tblS.getRowKey());+
    rks =  tblS.getSelectedRowKeys();+
    ISSUE:_
    When i run application and click Next/Previous Button, all functionalities do take place properly, but a null pointer exception is also thrown._+
    If i remove DisplayRow property of table from Selected to Default, every thing works good and no Exception is thrown_+       
    But as records in my table are going to be around 50-60 everytime, i need to set DisplayRow property of table to Selected.
    Is there any way to achieve this? Solve this problem?
    Some more details:_
    I am using a POJO class to create DataController. This DataController is having a view Object which is used to create results table.
    I have defined Primary key for my POJO Data Controller.
    Here is code of xml file:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.52.5"+
    id="ProductListBean" Package="xxadf.mm.resources"
    BeanClass="xxadf.mm.resources.ProductListBean"
    isJavaBased="true">
    +<Attribute Name="Product" Type="java.lang.String" PrimaryKey="true"/>+
    +<Attribute Name="Stock" Type="java.lang.String"/>+
    +<Attribute Name="Rate" Type="java.lang.String"/>+
    +<Attribute Name="Accuracy" Type="java.lang.String"/>+
    +<Attribute Name="Details" Type="java.lang.String"/>+
    +<ConstructorMethod IsCollection="true"+
    Type="xxadf.mm.resources.ProductListBean"
    BeanClass="xxadf.mm.resources.ProductListBean"
    id="ProductListBean"/>
    +</JavaBean>+
    Error Log:*
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:200)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:506)
    at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
    at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
    at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:458)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:618)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:641)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$100(ShowDetailItemRenderer.java:31)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:491)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:464)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:406)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:114)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.access$500(PanelTabbedRenderer.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:969)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:920)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer._renderTabBody(PanelTabbedRenderer.java:519)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.encodeAll(PanelTabbedRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please Help I have been struggling with this issue for long.
    Thanks and Regards
    Manav Ratra
    Edited by: user11255144 on Feb 8, 2010 5:33 AM

    Hi Arun,
    Thanks for replying.
    Actually in my application there is one result table and a section that is displaying complete details of the product selectd in result table.
    The next/previous buttons are not binded with result table.
    What I am doing is, I am puuliing data from VO and displaying it on form, whenever any of these buttons is clicked.
    As soon as these buttons are clicked data is coming up, but selection state of table is not getting updated.
    So to update selection state i wrote piece of code described in my previous post.
    Everything works fine if displayRow property of table is not set to selected.
    If i set display row property of table to selected, then i get a null pointer exception with message log defined in previous post.
    Although NPE is thrown, yet all data is properly fetched and table selection is also updated. But am not able to get how this NPE is coming and hpw to fix it .
    (I need to keep displayRow = selected, for all other cases NPE is not thrown)
    Please help..
    Thanks and Regards
    Manav Ratra

  • Sed help pls

    Hi,
    I have a bounch of files wich are named like "something_sXX_otherthing_YYYY", where sXX can be s01,s02....s99, YYYY is 0001,0002, .... 9999.
    I'd like to extract the sXX part from the filenames to sort them, can somebody help me how to do in a bash script?
    like if I have wildlife_s02_lion_0003.jpg, i'd like to get the "s02" string.
    I tried with sed 's/[^s0-91-9]//g', but that way it extracts the also other numbers and s characters.
    Thank you!

    How exactly are you wanting to sort them? Are you wanting to rename files  or just see a visual sorted list of them?
    If it's a visual then do you really need to extract "Sxx" just to sort them?
    How about just letting sort do it for you?
    Example:
    [harry ~]$ cat file
    bar_s47_dog_0024.jpg
    foo_s01_snail_0001.jpg
    bar_s02_dog_0002.jpg
    baz_s03_dog_0003.jpg
    bar_s02_cow_0001.jpg
    baz_s03_bird_0001.jpg
    Use sed to get rid of the underscores temporarily and make them blanks. Now we have clear fields to work with.
    [harry ~]$ cat file | sed 's/_/ /g'
    bar s47 dog 0024.jpg
    foo s01 snail 0001.jpg
    bar s02 dog 0002.jpg
    baz s03 dog 0003.jpg
    bar s02 cow 0001.jpg
    baz s03 bird 0001.jpg
    Use sort to first, sort by the first field (dictionary order), the third field (also dictionary order), and finally by the fourth field (numeric order). Then another quick sed to replace the underscores and your in business.
    Full Command:
    [harry ~]$ cat file | sed s'/_/ /g' | sort -k1,1d -k3,3d -k4,4n | sed 's/ /_/g'
    bar_s02_cow_0001.jpg
    bar_s02_dog_0002.jpg
    bar_s47_dog_0024.jpg
    baz_s03_bird_0001.jpg
    baz_s03_dog_0003.jpg
    foo_s01_snail_0001.jpg
    Also, if all you really want is the "Sxx" then how about: (Regex could be finer tuned but but gets the job done in this situation.)
    [harry ~]$ grep -Eo '[Ss][[:digit:]]+' file
    s47
    s01
    s02
    s03
    s02
    s03
    Also note you will have to modify the above commands to work with files instead of text.
    ls -1 Your_Photo_Directory | sed s'/_/ /g' | sort -k1,1d -k3,3d -k4,4n | sed 's/ /_/g'
    ls -1 Your_Photo_Directory | grep -Eo '[Ss][[:digit:]]+'
    etc.

  • Sed help

    Hi
    I am trying to get rid of " " in a txt file with sed
    although can't get it to work...(i am not very experinced with sed)
    anyway, I have a txt file whic looks like this:
    "hi" "there" "we" "like" "sed
    and I wanna separate everythng so that i can get an output like
    hi
    there
    and so on...
    anyone who knows sed that can help me?

    that sounds like something I can use
    I will most certainly try it
    thanks !
    Update: Doesn't quite do what I want,
    I insert my whole code in here:
    # INSTEAD OF SHOWING "INSTALL" in the dialog --checklist i wannt it to have a description, how this is done, I don't know...maybe someone does?!
    select_install()
    dodialog msgbox "In the next stage you are going to choose which packages to install, recommendation is that you install all packages." 18 70
    CHKLIST=
    if [ "$MODE" = "install" ]; then
    PKGS=$PKGS_PATH
    fi
    # INSTEAD OF SHOWING "INSTALL" in the dialog --checklist i wannt it to have a description, how this is done, I don't know...maybe someone does?!
    for app in `sed 's|"||g' $PKGS | awk '{ print $1 }'`; do
    CHKLIST="$CHKLIST $app INSTALL ON"
    done
    if [ -e /tmp/.pkglist ]; then
    rm /tmp/.pkglist
    fi
    domenu checklist "Select Packages" 19 55 12 $CHKLIST 2>/tmp/.pkglist || return 1
    if [ $? == 0 ]; then
    install
    else
    mainmenu
    fi

  • [SOLVED] sed: substitute "\n + multiple spaces" to "§"

    Hi, i'm trying to achieve something like that:
    input:
    system:capture_1
    system:capture_2
    system:playback_1
    MPlayer [6922]:out_0
    MPlayer [6923]:out_0
    system:playback_2
    MPlayer [6922]:out_1
    MPlayer [6923]:out_1
    system:playback_3
    system:playback_4
    system:playback_5
    system:playback_6
    system:playback_7
    system:playback_8
    Output:
    system:capture_1
    system:capture_2
    system:playback_1 § MPlayer [6922]:out_0 § MPlayer [6923]:out_0
    system:playback_2 § MPlayer [6922]:out_1 § MPlayer [6923]:out_1
    system:playback_3
    system:playback_4
    system:playback_5
    system:playback_6
    system:playback_7
    system:playback_8
    Which turns out to just substitute "\n + multiple spaces" to "§" , but in sed dealing with carriage returns seems not trivial.
    help, please?
    -EDIT
    This seems to work:
    cat something | sed ':a;N;$!ba;s/\n / § /g;s/ //g'
    Copy Paste fU!
    Last edited by kokoko3k (2013-10-15 12:12:05)

    sed 's:§:\n   :g' doesn't work for you?
    $ cat file
    system:capture_1
    system:capture_2
    system:playback_1 § MPlayer [6922]:out_0 § MPlayer [6923]:out_0
    system:playback_2 § MPlayer [6922]:out_1 § MPlayer [6923]:out_1
    system:playback_3
    system:playback_4
    system:playback_5
    system:playback_6
    system:playback_7
    system:playback_8
    $ cat file | sed 's:§:\n :g'
    system:capture_1
    system:capture_2
    system:playback_1
    MPlayer [6922]:out_0
    MPlayer [6923]:out_0
    system:playback_2
    MPlayer [6922]:out_1
    MPlayer [6923]:out_1
    system:playback_3
    system:playback_4
    system:playback_5
    system:playback_6
    system:playback_7
    system:playback_8

  • [SOLVED]please help me with Broadcom Corporation BCM4312 wifi driver

    [SOLVED] see the 4th reply by me:D
    Please friends some one tell me exact steps to make Broadcom Corporation BCM4312 wifi card work in my laptop.
    I want to
                   1)successfully install Broadcom Corporation BCM4312 driver and load it when system boots
                   2)install a good network manager to work with my wifi networks and it should be able to work with my wifi card.
    I just migrated from ubuntu to arch, I really want to know each steps for above issues.
    here is my lspci details
    04:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
    (note:I have a broadband internet working, which is connected by LAN port.)
    Last edited by rohu1990 (2010-04-04 03:17:31)

    rohu1990 wrote:
    [SOLVED] I just solved my issue by installing the driver from the broadcom linux driver site here are the steps i followed
    1-Download the driver from http://www.broadcom.com/support/802.11/linux_sta.php
    2-Extract it to a folder in home
    3-Read readme and understand the depedencies and follow the steps to disable the other wifi   modules
                       for me solved with installing :kernal26-headers and base-devel
    4-follow the steps in the read me and make then make install
    5-insert module into kernal
    6-make it automatic to load on startup
    Hope some one find this usefull cheers !!!:)
    I know this will help many people, even though I don't use this card.
    Thing to add to 5 and 6:
    5 - Command: modprobe XXXXX (module name)
    6- Add module name to MODULES=() in /etc/rc.conf

  • ***READ*** iTunes Download and Launch for XP Solved, May Help Others*******

    Well after hours of scouring my computer I have found the answer and solved my problem. People might want to make a note of this because it was simple and much less frustrating then some of the other instructions I have found on here:
    1st- After downloading Itunes I was getting the "itunes encountered a problem and must shut down" error when trying to launch it. I was also getting the "buffer overrun" error when attempting to start Quick Time.
    2- I hit ctrl, Alt, delete to bring up the task manager. I noticed 3 processes running in the background- "iPodService.exe", "iTunesHelper.exe" and "AppleMobileDevic...". this was a surprise to me since I never downloaded iTunes before....HOWEVER I discovered by searching my computer that my 17 year old son had about a year ago. He attempted to uninstall the programs BUT these processes remained even though nothing showed up in the installed programs from start>all programs. Also did not show up in the add/remove installed software. In any event here is what I did:
    I first ended all three processes in task manager. I second went into Start>Search and ran 3 seperate searches for "iPod", "Apple" and "iTunes". Deleted any and all references and dll's. Be careful with the Apple search do not simply select all of your findings and hit delete because applets shows up in the search and u need them for your other programs. Simply delete anything from Apple Computer. Then I ran CCleaner which is available free from www.ccleaner.com. Click on issues and it will give u a laundry list of missing dll's and unused ones. Then by hitting Fix selected issues it safely deletes the registry entries no longer being used. For safety it gives you the option of backing up your registry entries but i have had zero problems doing it. Run that a few times till u get the "No Issues" found message. Then I closed all and redownloaded the new iTunes with quick time and all seems to be working!!! I just got my iPod so im gonna test further but as far as the downloading and opening of the programs on my XP that solved the issue. Hope this helps others.

    teshlachris,
    iTunes, like other applications, will sometimes have issues trying to install from a different admin user than the one used to first install it.
    Did your son install iTunes with a different account? If so, your previous post did not include the fact your son had previously installed iTunes, or I would have suggested trying the install while logged in under his account.
    Hope this helps,
    Nathan C.

Maybe you are looking for