mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 03:35:02 -04:00
some sytem scripts
This commit is contained in:
parent
4b0a965e4a
commit
5852171b21
25 changed files with 639 additions and 1 deletions
12
shell_scripts/power_user_awk/for_loop.awk
Normal file
12
shell_scripts/power_user_awk/for_loop.awk
Normal file
|
@ -0,0 +1,12 @@
|
|||
# awk -f for_loop.awk
|
||||
|
||||
BEGIN {
|
||||
printf "To test for loop\n"
|
||||
printf "Press CTRL + C to stop\n"
|
||||
}
|
||||
{
|
||||
for(i=0;i<NF;i++)
|
||||
{
|
||||
printf "Welcome %s, %d times.\n" ,ENVIRON["USER"], i
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue