摘要: 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 阅读全文
posted @ 2024-06-11 18:35 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Create a logger.sh file #!/bin/bash echo `date +'%T %F'` $* >> `date +%F`.log $*: Represents all script arguments Example $ logger hello $ logger hell 阅读全文
posted @ 2024-06-11 18:18 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑