Question: I have a bundle version set in a file, like this:

```
"dist/app-build-v1.08": {

```

How can I sed the version number and swap it out with an incremented number?

First I'm attempting to grab the line itself, which is the third line in my bundle file.

```
BUILD=$(sed '3q;d' ./build/bundles.js)

```

Which does indeed grab the line. I found this snippet here on stack overflow:

```
's/[^0-9.]*\([0-9.]*\).*/\1/'

```

Which i'd like to use on $BUILD, but it doesn't work. The expected output for me would be 

```
$NUM = "1.08"

```

Then I'd like increment it to 1.09, rebuild the string and used `sed -i` to replace it.

Answer: 
You can check for the keys of your dictionary that you send. You can use three different keys and then check whether it is the right key for the right interface controller.
Give the ***didReceiveMessage*** method in ExtensionDelegate.m in the watch app extension. Pass the name of the interface controller to which the message is intended in the ***sendMessage*** method. In if-else condition, call the method in the intended interface controller using notification centre.