Julio Biason
1 year ago
3 changed files with 53 additions and 11 deletions
@ -0,0 +1,7 @@ |
|||||||
|
# This file is automatically @generated by Cargo. |
||||||
|
# It is not intended for manual editing. |
||||||
|
version = 3 |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "commandtest" |
||||||
|
version = "0.1.0" |
@ -1,11 +1,19 @@ |
|||||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||||
|
|
||||||
|
for loop in {1..1000} |
||||||
|
do |
||||||
echo "Hello, I'm a script!" |
echo "Hello, I'm a script!" |
||||||
echo "I write stuff in the output." |
echo "I write stuff in the output." |
||||||
echo "Everything should go to a file." |
echo "Everything should go to a file." |
||||||
echo "But also, you need to capture this:" |
echo "But also, you need to capture warnings:" |
||||||
|
|
||||||
|
if (( $loop%7 == 0)); then |
||||||
echo "WARNING: This is a warning" |
echo "WARNING: This is a warning" |
||||||
echo " It continues if the line starts with spaces" |
echo " It continues if the line starts with spaces" |
||||||
echo " And keeps going till there are no more spaces-prefixes" |
echo " And keeps going till there are no more spaces-prefixes" |
||||||
|
fi |
||||||
|
|
||||||
echo "Like this." |
echo "Like this." |
||||||
echo "Then you're good to go." |
echo "Then you're good to go." |
||||||
|
echo "" |
||||||
|
done |
||||||
|
Loading…
Reference in new issue