$20 for Simple Python Program

Discussion in 'Programming' started by seocompanymail, Nov 3, 2008.

  1. #1
    Write a Python script to implement the shell command replace. The full syntax of this command is given below:

    replace -x regularExpression [-s string -f -a] [file1] [file2]

    The replace command copies file1 to file2, replacing an occurrence (or occurrences) of the string matched by regularExpression with the string specified by string. The square brackets ([ and ]) are not part of the command syntax, instead they indicate an argument may or may not be present. In other words, the only required command-line argument is the option parameter -x regularExpression.

    More information will be given regarding the command line parameters. I am mostly looking to do this using getopt module.

    Willing To Pay $20
     
    seocompanymail, Nov 3, 2008 IP
  2. kkrawal

    kkrawal Peon

    Messages:
    235
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Give me a sample Text file for input and expression and output file sample.
    I do python programming for Blender see this is completely Python programming work to walk a 4 legged character.
    I will wirte a python program and execute, if I get success, I will inform you.

    But In a python program you have to change the variable values like


    Inputfile="c:/tmp.txt"
    outfile="c:/out.txt"
    find_str="sistem"
    repl_str="System"

    OK ?
    You have to chage these variable values and execute, the new file accordingly will be created.
    This I can do
     
    kkrawal, Nov 4, 2008 IP