Uncategorized

Exemplo shell bash 1

Um cronômetro no bash
#!/bin/bash
for hora in $(seq -w 0 59); do
    for mim in $(seq -w 0 59); do
        for seg in $(seq -w 0 59); do
            sleep 1;
            clear;
            echo “$hora:$mim:$seg”;
        done
    done
done
Standard

2 thoughts on “Exemplo shell bash 1

Leave a comment