O'Reilly logo

OSGi and Apache Felix 3.0 by Walid Joseph Gédéon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

gogo scope commands

The commands in the gogo scope provide a few additional tools that are especially useful when scripting a recurrent set of operations. We will cover some of them here.

echo

The echo command will evaluate its arguments and display the result on the console. For example:

g! var1 = 'this is'
this is
g! var2 = ' a string'
a string
g! echo $var1$var2

this is a string

grep

The grep command is used to search the input for lines that match a given pattern; it is very similar to the Unix grep tool. The input is either standard input, the output of a command piped to grep, or the contents of files.

The grep command will return false if there were no lines in the input that match the pattern. It will return true otherwise.

Its usage is as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required