Difference between revisions of "Talk:Bash Shell Script Examples"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(Created page with "== example of loop == #!/bin/bash export DISPLAY=:0.0 w=$(xdotool search --class Angeldust.x86_64) #!/bin/bash for (( c=1; c<=20; c++ )) do echo "Task Number $c" ...")
 
(No difference)

Latest revision as of 17:40, 19 January 2020

example of loop

#!/bin/bash
export DISPLAY=:0.0
w=$(xdotool search --class Angeldust.x86_64)

#!/bin/bash
for (( c=1; c<=20; c++ ))
do
  echo "Task Number $c"

  xdotool key --clearmodifiers --delay 200 --window $w Return
#  sleep 1s
  xdotool key --clearmodifiers --delay 1000 --window $w Up
#  sleep 1s

done