I need bash script for next business day after 15th of the current month. It should only give me next business day after 15th. I'm totally new to Bash Script. Thanks a lot.
d=1
while (($(date -d "$d days" +%u) >= 6)); do ((++d)); done
date -d "$d days" +%m/%d/%Y
相关问题
- How to get the return code of a shell script in lu
- Invoking Mirth Connect CLI with Powershell script
- Emacs shell: save commit message
- “command not found” errors in expect script execut
- Python script using subprocess and xclip hangs if
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Launch interactive SSH bash session from PHP
- Generate disk usage graphs/charts with CLI only to
- How can I create a small IDLE-like Python Shell in
- Pause shell script until user presses enter
Quick and dirty using cal: First case is Friday, then Saturday, then Sunday.