-4

lets get right into this topic. So I have a output from an cydia app called "AutoTouch".

touchDown(2, 634.4, 471.3);
usleep(66685.62);
touchUp(2, 635.4, 470.3);
usleep(365600.04);

Now, as i already made some functions for me, i want to parse that into something like that:

tapp(634, 471);
usleep(365600);

What simple language would u reccomend i should use to do that? It should be easy, but also powerful (like compare numbers and such hardcore stuff ^^) and work on osx/linux.

Thanks for your help and i hope i used the word "parsing" correctly :)

4
  • I think the answer to your question is "Any", although it could also be "Try one".
    – GolezTrol
    Commented Oct 3, 2015 at 16:40
  • I was about to suggest visual basic for its ease of use but thats a windows product, although I got it working within wine for linux. Commented Oct 3, 2015 at 16:42
  • @GolezTrol Ya, i could probably also do it with C++ but i want something simple and i am not in expert, i dont know where to start "trying". Commented Oct 3, 2015 at 16:47
  • @Mike Ok thx, maybe someone has a another idea with osx/linux, but i will take your suggestion into consideration. :) Commented Oct 3, 2015 at 16:49

1 Answer 1

-1

On linux/unix/osx, sed is your friend. You'll find a nice sed tutorial on grymoire. Depending on your specific needs, you could use awk as an alternative. There is also nice awk tutorial on grymoire.

The answer to this stack overflow question should help you choose between these two tools.

Not the answer you're looking for? Browse other questions tagged or ask your own question.