I'll add -n before pushing./Thanks HansN

On 11/29/2017 02:32 PM, Anders Widell wrote:
Ack with minor comment: maybe add -n option to the echo command, to avoid appending a newline at the end of the last field?

regards,
Anders Widell

On 11/27/2017 04:30 PM, Hans Nordeback wrote:
---
  scripts/opensaf_scale_out | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/opensaf_scale_out b/scripts/opensaf_scale_out
index dadb270c3..f9f5cde7a 100644
--- a/scripts/opensaf_scale_out
+++ b/scripts/opensaf_scale_out
@@ -41,7 +41,7 @@ exit 0
  # for node in "$@"
  #  do
  #     logger "> [$node]"
-#     IFS=","
+#     IFS=$CLM_IFS
  #     for arg in $node
  #      do
  #        logger ">> $arg"
@@ -61,7 +61,7 @@ imm_xml=$tmpdir/imm.xml
    immfind -c SaClmNode | sed -e 's/^[^=]*=//;s/,.*$//' > "$nodes_cfg_tmp"
  for node in "$@"; do
-    node_name=$(echo "$node" | cut -d"$CLM_IFS" -f2)
+    node_name=$(echo "$node" | awk -F "$CLM_IFS" 'BEGIN{RS="$^"} {print $2}')
      echo "$node_name" >> "$nodes_cfg_tmp"
  done
  rm -f "$nodes_cfg"



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to