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 |
||||||
|
|
||||||
echo "Hello, I'm a script!" |
for loop in {1..1000} |
||||||
echo "I write stuff in the output." |
do |
||||||
echo "Everything should go to a file." |
echo "Hello, I'm a script!" |
||||||
echo "But also, you need to capture this:" |
echo "I write stuff in the output." |
||||||
echo "WARNING: This is a warning" |
echo "Everything should go to a file." |
||||||
echo " It continues if the line starts with spaces" |
echo "But also, you need to capture warnings:" |
||||||
echo " And keeps going till there are no more spaces-prefixes" |
|
||||||
echo "Like this." |
if (( $loop%7 == 0)); then |
||||||
echo "Then you're good to go." |
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 |
||||||
|
Loading…
Reference in new issue