-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 :)

Blubberlase
  • 29
  • 1
  • 8

1 Answers1

-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.

Community
  • 1
  • 1
Kraal
  • 2,779
  • 1
  • 19
  • 36