How to remove extra blank spaces from log file.

i have created a log file which contain the logs of a program. the logs are getting created fine for the first execution of the program but from the second time the log file is getting blank space's after every character.
i have used the code to append the text in log files few examples : 
 'Clean up process started....' >> $log
File name :'+ $files +'Time-Stamp: '+ $endtime +'Search complete.' >> $log 
.i want to remove the extra spaces after each character but not all the spaces from the file. Thanks in advance.

hi  mjolinor
add-content is used to insert text it does not append text at the file .i used >> to append the text on log file ..
from 
Get-Help ADd-Content
Synopsis
Appends content, such as words or data, to a file.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • How to add extra blank space in xml

    I open the xml file in notepad I get this
    <XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所                                        </XXON_EXT_BANK_ACCOUNT_NAME>
    But when I open the xml file in html format the blank space is gone.
    How can I add extra blank space in xml?

    Hi
    Why do you need the extra space for?
    This difference in display that you see between your browser and notepad/notepad++
    will not affect your generated report.
    Bogdan 

  • Remove extra white space from an image

    I want to remove the extra white space in my image while writing it into a jpeg file using JPEGImageEncoder.
    Any help is welcome .

    ok.. Am having a JPanel whose width is set to 77000. But almost 60% of right hand side of the Panel is empty. I will create a BufferedImage from this component and then write it into a file using JPEGImageEncoder.
    The empty portion of the panel is coming as a white space in the image.
    Now how to remove this ? Was that clear enough ?

  • How to remove last blank page from preview of Smartform

    Hi Experts ,
    I am creating a smartform having vbeln range option. Now if i give range from 2 to 10 then After Doc NO. 10
    i got a blank page . So can u please tell me how to remove that.
    Rgds,
    Premraj

    hey,
    Create a program lines node.....
    in that describe the internal table in which you are having the document number.If you are having 10 document number then you will be having 10 pages.... so create program lines befor the command line in the command line just give a flag ok.
    when the 10th page is created then the control comes to program line where the pagenumber will be equal to the number of document number there create a flag ( f = 'X') then give this codition in command line.Trigger the command line when ever f NE 'X'.So in the last time new page will not be triggered.
    Regards,
    Midhun Abraham

  • N82 - How to remove a single event from LOG

    Hi
    N82 has a strong loging system, all events will log, but it is not interesting when you dont want your wife read your mobile logs :-D
    There is an option to remove all log entries but who can I only remove one event entry from the global log report ?
    usually in all systems when u highlight an entery you can press "C" key to remove it, but there isnot such option i have just one option to remove all !!!?

    From the interface, you can't. At try with my n95 many times but no luck.
    Información sobre Symbian / NSERIES en Español en http://symbianespanol.wordpress.com

  • How to remove extra html markups from adf generated code in webcenter porta

    hi!
    I am trying to develop navigation in oracle webcenter portal.
    My code is generating extra div's for li and a tags. how to remove the extra div's.
    code in my template for generating navigation is:
    <div id="JS-MainNav " class="menu9 clearfix">
    <ul class="jd-menu">
    <!-- Root UL-->
    <c:forEach var="node" varStatus="vs"
    items="#{navigationContext.currentModel.listModel['startNode=/, includeStartNode=false']}">
    <li class="single">
    <!-- first li-->
    <af:goLink id="gLink" styleClass="menu9two accessible"
    destination="#{node.goLinkPrettyUrl}">
    <af:outputText value="#{node.title}"/>
    </af:goLink>
    </li>
    <c:if test="${node.selected}">
    <c:set value="${node.children}" var="childNodes"
    scope="session" />
    <ul>
    <!-- 2nd level ul inside li-->
    <c:if test="${childNodes ne null}">
    <c:set var="childNodes"
    value="${navigationContext.currentModel.currentSelection.parent.children}"/>
    <c:forEach items="#{childNodes}" var="node">
    <li class="fixMenuEN ${node.selected ? 'active' : ''}">
    <!-- 2nd level li-->
    <af:goLink inlineStyle="#{node.selected ? 'font-weight:bold;' : ''}"
    id="sub" text="#{node.title}"
    destination="#{node.goLinkPrettyUrl}"/>
    </li>
    </c:forEach>
    </c:if>
    </ul>
    <!--</c:set>-->
    </c:if>
    </c:forEach>
    </ul>
    </div>
    <!-- xMain Site Tabs -->

    What's the HTML result in your browser form this code?

  • Removing extra blank space after Header in IE

    This is my first webpage in Dreamweaver (actually it's my
    first webpage!) I'm still super new and can use A LOT of help.
    First off, I'm using the two column elastic left sidebar
    header/footer template from DW. When I preview my page in IE I get
    an extra gap between the header and the sidebar/maincontent portion
    of the screen. I've tried zeroing all of my margins and padding and
    that seems to have no effect. I read some of the other posts and
    found some code that sounds like it should fix the problem, so is
    this all I have to add to my code?
    Attach Code:
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs to avoid several bugs */
    </style>
    <![endif]-->
    Also, I am trying to add an image placeholder to my header,
    but everytime I try, the placeholder becomes part of the <h1>
    tag. I don't want it to be part of the <h1> tag (I don't
    think). I would like to be able to just place it in the header so
    that I can float it left and have it not effect my <h1> tag
    at all. Is there a fix for that? I would assume that there would
    be, but seeing as I'm still at Newb status, I have no idea what
    that code would be.
    Thank you!

    Ewww - made the page in Word, did you?
    span.style81 {mso-style-name:style81;
    mso-ansi-font-size:17.5pt;
    mso-bidi-font-size:17.5pt;
    font-family:Arial;
    mso-ascii-font-family:Arial;
    mso-hansi-font-family:Arial;
    mso-bidi-font-family:Arial;
    color:black;
    font-weight:bold;}
    Try changing this -
    <table width="795" border="0" bordercolor="#000000"
    bgcolor="#000000"
    style="border-color: #333333;">
    to this -
    <table width="795" border="0" bgcolor="#000000"
    style="border-color:
    #333333;" cellspacing="0" cellpadding="0">
    Be aware that without specifying a border-style, and
    border-width, your
    border-color style will have no effect.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "moon64" <[email protected]> wrote in
    message
    news:en1idh$kca$[email protected]..
    >I am getting a small space on some of my pages in-between
    the header and
    >the
    > first table. The problem only shows itself in IE, not
    through Firefox. I
    > have
    > encountered the same problem on some other things I have
    been working on.
    > Here
    > is a portion of the file if anyone could kindly see what
    is casuing the
    > problem. Thanks in advance. This board must have
    answered 100 questions
    > for me
    > so far.
    >
    >
    http://www.1candlemarketing.com/fund/headertest.html
    >

  • How to remove extra header/footer from BC default template?

    BC put their own header (with live links to dummy pages) and footer (two line of text on the bottom) in my Dreamweaver CS6  job at  http://140001.worldsecuresystems.com/
    Although I'm in the directory I can't seem to delete theses items,
    the Main Template.dwt inside the default Templates folder.
    I can't even delete the code inside it and leave it as an empty file.

    Tobydog20,
    I eneded up having to log in directly at Business Catalyst, not going through DW at all. There I entered a completely different mode, many more folders were visible. There it should also show you the template folder (the one you can't delete) belongs to your current DW project, which is why you can't delete it. You should see the other files that you can delete -- it's an entirely different experience going through Business Catalyst.
    An extra caution, Adobe also added some new CSS global sheets to MY project that weren't in my original upload, so keep an eye out. I discovered this when I had to add code and I swore that page didn't belong to my job. Well, it did.

  • How to reve Extra special characters from source file

    Hi all
           I am doing an file to idoc scenario in which i am using SEEBURGER BIC adapter for converting flat file to xml.My input file contain HEADER ,ITEMHEAD AND FOOTER.When i am processing an error is coming extra charcterYP persent before header.While in input file its not visible,it might be some special controll character
    my file is with utf-16 format( little endian) encoding.
    Plz share if u have any idea about the sudden occurence of special character and how to overcome it.
    Regards
    Saurabh Sharma

    sorry, i meant the code for removing the special character.
    Just a quick clarification about what i read in your previous post: that you are using a SEEBURGER adapter and in this adapter there is a module deployed called BIC which does the file to xml conversion.
    So the plan is to insert the custom adapter which will remove the extra space before the BIC adapter in Seeburger adapter right. my only assumption here is that we can add this custom adapter before bic module in Seeburger adapter module tab.
    Basically i dont no whether you have the option of adding a new adapter module in SEEBURGER ADPTER BIC MAPPING DESIGNER just like there is one in File adapter.
    Please confirm

  • How to remove extra char in the uploaded file...?

    Dear All,
    There is file upload page in our portal.When user uploads the file (CSV) i can see there is extra char (^M) in the unix env.How can I remove that extra char before inserting into the database.For inserting into database I am using below code:
    BlobDomain blobdomain = (BlobDomain)pageContext.getParameterObject(upldFileNameHD);
    header.setFileData(blobdomain);
    Did anyone can help me on this...
    Thanks

    Raffy is right in giving the explanation on why this happens.
    Now way to
    1. Remove it:
    A. open file in vi
    B. use this command, the way it works is, search(%s) for the ^M char and replace it with space (//) , and do this globally (g)
    :%s/^M//g
    C. To type ^M char press Ctrl Key and press either M or J, it should print that char.
    D. Save the file (:wq)
    2. Avoid it:
    when doing FTP, use binary mode, just type bin before you do a put.
    Thanks,
    Tapash

  • How to remove Header and Footer from Flat File

    Hi,
    In a scenario , we are going to recieve a flat file which will contains header , footer and data. We have to have to load data in Oracle tables and remove header and footer.
    once the data load is complete , we have to delete flat file from source directory.
    Please help me in solving this issue.
    Thanks,
    Kamlesh

    You have a header parameter in the file datastore. You can provide any number to skip rows from top of the file. For footer you can create a filter in staging area.
    Filter coould be something like this.
    where source_alias.source_column not like '%FOOTER_OR_ANY_VALUE_AS_PER_YOUR_REQ'

  • How to remove the white space of oam file?

    I have done the oam in Adobe Edge Animate, when i insert it into Adobe Dreamweaver,
    it turn into this:
    There is a white space under the oam file.
    How to get rid of it??
    I'm a design student without any much of knowledge of coding >< Please help me.

    When you insert the oam file, I assume it gets inserted as <object> tag.
         <object height="X" width="Y" ....  style="display:block"   ... ></object>
    Add the bold text to the object tag as shown above.
    hth,
    Vivekuma

  • How to remove empty space from a file

    Hi all,
    Can any one help on how to remove the blank spaces from a file.
    I used trim function but unable to remove the spaces.
    I have a file in which there is a name like 'JAIRAM' and am storing this file in a variable FILE_CONTENTS.
    Now am unable to compare FILE_CONTENTS with another value as it is storing empty spaces also from the file.
    Please help on this
    Thanks,
    Srini

    Trim only trim at the beginning or at the end. Can you try using the replace sql function.. see below..
    SQL> select replace('abc def',' ','') from dual ;
    REPLAC
    abcdef
    cheers

  • Extra blank space problem in af:selectOneChoice

    Hi All,
    I m using <af:selectOneChoice> to display few items in combo box. Now the problem is when the page gets load 1st time, its show an extra blank space in item list, but after selecting any item from the list page gets refreshed and reload again, now it does not have any extra blank space in the list.
    How do I remove this blank space from the combo box ???

    Hi Usha,
    1. Remove the Condition from you Context tab.
    2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
        the adobe form.
    3. Make the subform (under which the field is added in the hierarchy view) as flowed.
    4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
    for e.g
    if (xfa.form.FORM.SUB_FORM.matnr == "123") {
        xfa.form.FORM.SUB_FORM.Region = "hidden";
    NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
    Hope this proves to be useful.
    Thanks,
    Swar.

  • How do I remove the white space from the bottom and side of my document?

    How do I remove the white space from the bottom and side of my document? (I'm not talking about printing, just viewing it on the screen.) There are about 6 inches of white space at the bottom and at the right hand side. I don't like this. On a blank new spreadsheet it's triple that amount of white space.

    The infinite canvas convention doesn't make a lot of sense for Numbers. When I'm viewing a spreadsheet and mistakenly scroll into white, empty space I think, "this is ridiculous - all of my content is fits on one screen. there's nothing over there."
    A (relatively) infinite canvas is logical for Microsft Excel because it's one big table. There are 256(?) columns by default and hundreds of rows on a sheet - there are cells outside what a user is looking at to see. However, when viewing a Numbers spreadsheet with a single 10 column 10 row table that fits on the screen, there's nothing else on it to scroll to.
    Numbers should distinguish between viewing a spreadsheet and editing one. When I'm just viewing, when there's no content outside the window it shouldn't scroll there. This window behavior is beyond annoying for Numbers on my iPad and iPhone.
    (Adding user-defined canvas size setting to my view mode / edit mode thinking would probably be the most complete solution to this now that I think about it.)
    Until now the way scrolling worked in Numbers has defied logic. Actually it still does lol. That said, thank you Yellowbox for providing a clear explanation. Much appreciated.

Maybe you are looking for

  • Page Fragment and javascript - need help please

    Hi all.. I have a page fragment (being used as a header) and am trying to get a text field in this page fragment to recieve a value from a javascript (that is embeded in the page fragment).. see the example below.. --------------PageFragment1--------

  • File Writing Issue :-(

    Hello Guys, Im trying to write into a file from a InputStream..For which the code is as followspublic void saveFile(String filename,InputStream inpStr) try{ InputStreamReader stream=new InputStreamReader(inpStr,"SJIS");      File tobSavedFile=new Fil

  • RFQ stored in which table.

    Hi Gurus,               I want to know in which table the RFQ(Vendor Requisition number) is stored. Regards, Krishna

  • What am I doing wrong? Cannot save as brush?

    Hi all I am trying to make a watermark for photos on my website. However, when I try save my image as a brush preset, I get the error "Could not complete the define brush preset command because the selected area is empty" I have made the background t

  • Syncing m4b files to iPad / iPhone via iTunes

    Wondering if anyone else ran into a problem syncing m4b files to their iPod/iPhone via iTunes.  I was able to import these into iTunes with no issues, but when I try to transfer them to my iPod or iPhone, they do not show up in the list.  Anyone know