abs icon indicating copy to clipboard operation
abs copied to clipboard

Ability to read command output line by line in a loop

Open gustavosbarreto opened this issue 3 years ago • 0 comments

NOTE: the command need to be executed in the background.

for line in `tail -f /tmp/log &` {
  echo(line)
}

Also combines the stdout and stderr of executed command in the same ouput, like native Go implementation of cmd.CombinedOutput.

gustavosbarreto avatar May 23 '22 20:05 gustavosbarreto