IT Nursery
I have a Bash script that builds a string to run as a command Script: #! /bin/bash matchdir="/home/joao/robocup/runner_workdir/matches/testmatch/" teamAComm="`pwd`/a.sh" teamBComm="`pwd`/b.sh" include="`pwd`/server_official.conf" serverbin='/usr/local/bin/rcssserver' cd $matchdir illcommando="$serverbin include="$include" server::team_l_start="${teamAComm}" server::team_r_start="${teamBComm}" CSVSaver::save="true"...
  • June 4, 2022
  • 0 Comments
IT Nursery
I’m trying to write a simple script that will list the contents found in two lists. To simplify, let’s use ls as an example. Imagine “one” and “two” are...
  • June 4, 2022
  • 0 Comments
IT Nursery
How does one choose between "$0" and "${BASH_SOURCE[0]}" This description from GNU didn’t help me much. BASH_SOURCE An array variable whose members are the source filenames where the corresponding...
  • June 3, 2022
  • 0 Comments
IT Nursery
What is the best way to emulate a do-while loop in Bash? I could check for the condition before entering the while loop, and then continue re-checking the condition...
  • June 3, 2022
  • 0 Comments