Search Results

Search: Posts Made By: knowyrtech
5,418
Posted By knowyrtech
What if the incoming request to the test script...
What if the incoming request to the test script is from a tool call Jenkins and the parameters could be multiline strings or comma separated which enforces us to have quotes around each argument. Any...
4,602
Posted By knowyrtech
Tried this suggestion but i see nothing empty...
Tried this suggestion but i see nothing empty output:

more list.sh
#!/bin/bash

loc=$1

totalstr=""

totalstr=$(grep -o "\S\+" <<<"$loc" | paste -sd,)

echo "FINAL:$totalstr"



My...
4,602
Posted By knowyrtech
Retaining value outside loop
Hi,

I m new to shell scripting. I did some research and understand that unix treats while and other loops as new shell and hence the variable loose its value outside of the loop.

I found...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy