How to create executable from everywhere bash script in Devuan? [with screenshots] [ex.#1]
Bash scripts are very helpful took for work routine and simplifying your work with linux.
Let's create a simple bash script, which writes something in terminal.
#!/bin/bash
for i in {1..10}
do
echo Hello number $i
sleep 3s
done
What does this script? Echo command prints "Hello number #" precisely ten times, but with delay 3 seconds.
Save the code as delayed_hello.sh:
dima@computer:~/scripts$ cd /home/dima/scripts
dima@computer:~/scripts$ ls
delayed_hello.sh