Giter Club home page Giter Club logo

sandr's Introduction

Hi!

Statistiques Langages

sandr's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sandr's Issues

[Question] Newline characters in replacement map

Hi, sorry to open an issue to ask this, but I was wondering how I can use newline characters in the replacement list when using the -a argument.

Here's a snippet of my replacement map;

:17.0 => :17.12
:17.1 => :17.12
:17.2 => :17.12
:17.3 => :17.12
:17.4 => :17.12
:17.5 => :17.12
:17.6 => :17.12
:17.7 => :17.12
:17.8 => :17.12
:17.9 => :17.12
:17.10 => :17.12
:17.11 => :17.12
:17.13 => :17.12

However, you as you might expect, this causes errors; :17.1 gets replaced to :17.12, so the final output becomes :17.122. Because each string I want to replace is at the end of a line, the obvious solution is to use a newline character in the replacement map, but that doesn't seem to work; I've tried both \r and \n and neither produce the desired output.

Is there something I can do, or is this a limitation of the script, or perhaps my own error?

invalid syntax

I got this error when I run the following command python sandr.py -e -s BONjour -r helLO -i aaa to test sandr.py

  File "sandr.py", line 76
    print(message, file=sys.stderr)
                       ^
SyntaxError: invalid syntax

can anyone help ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.