摘要:
Exit code and Operators (&&, ||, 😉 When the previous command run successful, it returns 0, otherwise 1 $ date Wed Jun 26 12:17:17 EEST 2024 $ echo $? 阅读全文
摘要:
ul li { border: 2px solid gray; border-radius: 8px; padding: 1rem; margin: 1rem; } // old way ul li input:checked { accent-color: #f806e4; } // new wa 阅读全文
摘要:
function currency(strings, ...values) { return strings.reduce((result, string, i) => { let value = values[i - 1]; if (typeof value "number") { value = 阅读全文
摘要:
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 阅读全文
摘要:
Single quotes If you want to use characters like < or > in the arguments to a program, you will need to use quotes so that the shell doesn't try to in 阅读全文
摘要:
Environment variables are defined by the shell and shell scripts. To list the current environment variables, type export: ~ $ export declare -x DISPLA 阅读全文