what it is supposed to do is relatively easy
it sets an environment variable "v_listener_command" to a value determined from a sequence of shell commands.
Breakdown:
a ; (semicolon) separates commands on a single line
s | (called a pipe) passes the result from the first command to the following 'piped' command
so;
Code:
echo ' Listener Log' | tr '\\n' ':';
outputs a string and 'pipes' it to a tr command
tr is a 'translate' statement which replaces characters in a string.
your example replaces a newline character (\n) with a colon.
use
in a shell window for more on tr.
Oracle database listener status request but not my department a I don't use Oracle. but the output is piped to grep for lines the word 'Log' then passes that to awk to get the 4th word/column of those lines.
Eg echo 'This is a test' | awk '{ print \$4 }' will return 'test'
[more to follow]
Chris.
Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Never mind this jesus character,
stars had to die for me to live.