摘要:
The basic syntax of a for loop in Bash is: for variable in list do commands done Examples Example 1: Iterating Over a List of Words #!/bin/zsh for wor 阅读全文
摘要:
Create a logger.sh file #!/bin/bash echo `date +'%T %F'` $* >> `date +%F`.log $*: Represents all script arguments Example $ logger hello $ logger hell 阅读全文