You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
458 B
19 lines
458 B
#!/usr/bin/env bash |
|
|
|
for loop in {1..1000} |
|
do |
|
echo "Hello, I'm a script!" |
|
echo "I write stuff in the output." |
|
echo "Everything should go to a file." |
|
echo "But also, you need to capture warnings:" |
|
|
|
if (( $loop%7 == 0)); then |
|
echo "WARNING: This is a warning" |
|
echo " It continues if the line starts with spaces" |
|
echo " And keeps going till there are no more spaces-prefixes" |
|
fi |
|
|
|
echo "Like this." |
|
echo "Then you're good to go." |
|
echo "" |
|
done
|
|
|