How to publish the source code

How best to publish the source code?

I need an alternative to fall back on.  How I would go to this topic if I had to use HTML.

My chance to validation code has deteriorated over time. I did it via:

I take the plain.

Yesterday, when I tried to insert the Bash source code.  I had a lot of white lines.  I think that leading # confused CSA.


#!/bin/bash 

   # so anyway, output from the echo statement is sent to the terminal.  The operands < and >
   # allows you to change where it is going.
  

# default redirection  

# 0 stdin  -- standard input

# 1 stdout -- standard output, non-error output

# 2 stderr  -- standard output for error messages.

# had not used the exec statement before, the concept of the exec was

# readily apparent to me.

   

# of course, I ripped this off.  Turns out you want to preserve where input stream 0 is

# coming from. The hack moves input stream 0 to input stream 6.  Pick any number

# that is allowed.

   

# save standard input in file descriptor 6 

exec 6<&0 

   

# now we say where we want input stream 0 to come from. 

# bash has an unknown to me number of commands that read from input stream 0

# via redirection we can change were stream 0 is coming from.

# redirect standard input to be from the passed file 

exec 0<${1} 

count=0 

while read lineIn  

do { 

# bash syntax is bizarre.   

# The (( )) says it's a math expression 

(( count++ )) 

echo "${count}: ${lineIn}" 

} 

done 

# put the input streams back to where they were before. 

# Nice, but when the script quits they will all be put back to where they were.

# Of course, I copied this stuff.  Syntax isn't the obvious.

# close input.  May not need.  My innovation.  Seems nice.

exec 0<&- 

# restore file descriptor 0 should be standard in 

exec 0<&6 

# close file descriptor 6 for reuse. 

exec 6<&- 

echo 

echo "Total lines were ${count}" 

Do you get the extra lines before applying syntax highlighting? You can simply change the Courier New font.

#! / bin/bash

# Anyway, Exit statement echo is sent to the Terminal.  The operands< and="">

# allows you to change its future.

default redirection #.

# 0, stdin - standard input

# 1, stdout - output standard output without error

# 2, stderr - standard output for error messages.

# did not use the exec statement before, the concept of the exec has been

# obvious to me.

# good course, I snatched it.  Turns out you want to keep where the input stream 0 is

# coming. The cut moving the input stream to the stream input 6 0.  Choose any number

# who is allowed.

# Save the standard entry in the file descriptor 6

exec 6<>

# now say us where we want to enter flow 0 to come from.

bash # a a stranger to me the number of commands that read from the input stream 0

# via redirection, we can change were stream 0 comes.

# redirect the standard input from the file passed

exec 0<>

Count = 0

while reading lineIn

{}

bash # is weird syntax.

# (()) Is a mathematical expression

((count ++))

echo "${number}: ${lineIn}.

}

fact

# put the input stream to where they were before.

# Nice, but when the script closes they will all put back to where they were.

# Of course, I copied this kind of things.  The syntax is not obvious.

# entry closes.  May not need.  My innovation.  Seems nice.

exec 0<>

Restore file descriptor # 0 should be standard in

exec 0<>

# close the file descriptor 6 for reuse.

exec 6<>

ECHO

ECHO "the Total of the lines were ${number}.

TT2

Tags: Using Support Communities

Similar Questions

  • How to get the source code of the UIShell model

    Hello

    We use the UiShell model in our project. The version of the UIShell model is the one coming with JDeveloper 11.1.1.6.
    We need the source code for this particular version to customize.

    My questions are:

    1. where to find the source code for this particular version (No newer or older)
    2 how get it (do we need to sign anything, for example?)

    Thank you

    Hello

    the SR may be presented by any person in your company who has a metalink account.
    Only the NDA must be signed by the person who has the legal responsibility to do so.

    concerning
    Peter

  • How to find the source code (package / service..) a concurrent program

    Hello


    I gives me the name of a concurrent program.

    Now my question is, how do I find the source code for the simultaneous progra.


    Could someone explain to me.

    FYI: I have full access (sysadmin).

    Thank you
    Prasad
    Senior Oracle Apps DBA

    PL post Details of the operating system, database and versions EBS.

    Responsibility of the system administrator, go to the competitor > program > set and search for the name of your simultaneous program. When you find it, there will be a 'the executable name' that are associated with him.

    Go to the competitor > program > executable and locate the 'name of the executable"- and you will get the information you need.

    http://docs.Oracle.com/CD/E18727_01/doc.121/e12897/T302934T458253.htm

    HTH
    Srini

  • How to release the source code (only) for first level VI?

    Hello

    I develop an add-on for an application that I have. The demand is large (more than 1,500 VI) and the screws are set up to compile with for most of the default settings (there is a first level VI, some with visible front, most of them are not visible).

    The customer wants that source code for the work that I do, and he will use the many existing Subvi. The addon itself will be a Subvi (I have a Main.vi that basically opens 'front' and it is a new screen). The sub - VI existing basically make data collection and treatment, and the new code will perform additional processing and have a nice GUI for existing code. The customer wants the source so that they can make changes as needed.

    Is there an easy way to simply provide the source for the first level VI? Basically, I want to give them M.vi, where M.vi name n.vi, o.vi... etc, but o - z.vi should be non-free. In addition, M.vi is called by Main.vi, which opens A screens - M.vi

    One option is to copy the entire application, then open each sub - VI and save it without Source Code. But with so many files, this seems like a bad idea. So, I also maintain two applications.

    Good ideas out there? It seems if easy in other languages (using object files) it looks like there should be a solution here I don't see... Thank you!

    rnelsonee wrote:

    Ah! I completely forgot to Save with Options. It's been so long that I had to deal with this type of problem.

    OK, to ensure that:

    I opened my first level VI, saving Options with-> apply the password (or remove diagrams) and then give it to them. I also provide a normal backup of their VI, with source.

    I still about 100 screws which are called dynamically are not part of the VI treeand I would still have to re - register with a password, but it's better than every single VI. Thank you!

    Use the option duplicate hiarchy and preserve...

    apply to all...

    at least as far my memories are good.

    Ben

  • Need to use the source code in VB6 for a Recordset multiple connection

    Hello
    I need different types of connection in a Recordset. How to use the source code in vb6. kindly help me.

    Thank you...

    Hi Alexander,.

    The question you have posted is better suited in the MSDN Forums. Please see the following link for more information.

    Category VB

  • integration html in the source code?

    Hello

    Im trying to insert code into the source code of the site, in order to integrate specific html on the specific pages relating to specific videos, I have to sell.

    How to access the source code?

    see you soon

    Daniel

    Hello

    Please see the link below on embedding HTML in Muse.

    http://helpx.Adobe.com/Muse/topics/Embedding-HTML.html

    If you are ready to insert some code into the body, then you can use object > insert HTML code.

    If you want to put the code in the head, then you go to the page and go to Page > Page Properties > metadata > HTMl for> Paste code.

    For more options, you can check the link above.

    Concerning

    Vivek

  • Where is View Source? How can we consider the source code of a Web site?

    Where is View Source? How can we consider the source code of a Web site?

    View the Source used to access via a drop down menu, but is no longer. Why?

    I use Firefox 24.0.

    1.) get in Firefox.
    2.) open any page you want to view the source code.
    3.) after full opening of the page "right-click" then you can see the source view of the page, click on it to see the Source of the page.
    Thank you.

  • How can I see the source code of a html page?

    In previous versions, it was possible to read the source code on an html page in the "View" menu It is no longer there. How to read code now?

    Use one of them:

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Source of the Page (Ctrl + U)
    • Right-click on a web page to open the shortcut menu and select the Source of the Page
  • How can I change the content in the source code

    Hello

    I did an emailer in eloqua with his choice in the generation, but its layout does not look good and now I want to modify its source code, but I'm not able to see its source anywhere. Can someone tell me how I can do this.

    Thanks and greetings

    Angela

    Hello, you just click right in the text box, and you will see the option to edit the source code

    Terry

  • I want to take the source code of each Web page as input and address on it, how can I do this?

    I'll develop an add-on for mozilla firefox, but for this I need the source code for each page. This is necessary to find the tag button inside the source code, to search for the tag href in the source code, etc... So please help me for this.

    The forum of the add-on is here:
    https://forums.addons.Mozilla.org/

  • How do I know if a loaded SWF file have the source code?

    Hi!, I need to know if a loaded SWF file have the source code. I develop an application running on iOS and admin can upload SWF files that show in the APP, but I must know before show (mobile Adobe AIR APP) or activate (PHP script server), if this SWF file have the source code for no show or enable him not it.,.

    Thank you!

    I have it!

    Only that we need to do is:

    1. If the first tank is:

    F-the swf is uncompressed

    C - compressed with Deflate

    Z - compressed with LZMA

    2. If it is compressed, uncompress it with the right method

    3. search MainTimeline string, if concluded the SWF actionscript so it is not found, the code is not actionscript.

  • Firefox 41.0.2 long lines don't wrap when you view the source code

    When I try to view the source code of a web page, I have to use horizontal scrolling. How can I make the text as it does on my IE6?

    If necessary, you can change the setting in this way as well:

    (1) in a new tab, type or paste Subject: config in the address bar and press enter/return. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste wrap it up and make a pause so that the list is filtered

    (3) double-click the preference view_source.wrap_long_lines to switch the value from false to true

  • A medium terminal to download the source code of a page

    Hello
    I want to find a way to download the source code of a page and the problem is, when I try to download html, which is generated by js.
    So I want to check (and change + firefox automatically the source code generated by a script, but don't know how.)
    Thank you.

    Just used phantomjs

  • Link to the source code for the module does not

    I followed this link: https://addons.mozilla.org/en-US/firefox/addon/sabnzbdfox/?src=search (with download of the source) and got a '404 error' (https://addons.mozilla.org/en-US/firefox/files/browse/76042/)

    Find the source code in another place, and when I do, how I update the broken link?

    Hello

    You can also try after some time. To search for possible temporary network problems please see: http://status.mozilla.com/

    Also, if the problem persists, try the link in a new profile.

    Profiles Howto

  • How to display the source of the page of the Web site that I visit?

    Sometimes, I want to be able to view the source code of a particular page to answer the question: "How do they do that?

    How can I do this?

    Use one of them:

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Source of the Page (Ctrl + U)
    • Right-click on a web page to open the shortcut menu and select the Source of the Page

Maybe you are looking for

  • Workflow with DXO Optics pro 11 and opening 3.6

    Hello everyone. I work with opening 3.6. I recently installed DXO Optics pro 11 as a trial version. When I try to upload a photo to DXO in the hole (as an external editor, I have configured DXO) most of the time the following message appears: error l

  • Safety Office KB2509461 number update will not be installed. Any suggestions?

    Custody of Microsoft Update tries to install the security update KB2509461 number, but it will not be installed. I disabled my antivirus and antispyware, firewall. Any suggestios?

  • Photo flashes loading office

    I have an image that flashes 2 seconds before my RESUME computer loading windows. Is it possible that I can delete this picture? Y at - it a command that can eradicate it?

  • Windows 7 activation key works on 32 bit and 64 bit?

    Hello, I bought an Ideapad U350, which came with a preinstalled copy of Windows 7 Home Premium 32-bit. Because I upgraded the RAM to 4 GB, but my 32-bit OS architecture use only 2, 84GB, so I want to install a new copy of Windows 7 Home Premium, but

  • Reliability and history problem

    In relation to maintenance, I see the following: 05/06/2013-chess Application 7:am, failures of the window, various failures, warnings information. What does it mean and what am I to do? Moved from feedback Previous post suggests that the OS is Windo