tricks:shell
This is an old revision of the document!
Table of Contents
Shell tricks
Sudo privilege escalation
if [ "$(id -u)" != 0]; then sudo "$0" "$*" exit $? fi
Posix Documentation
Parameter expansion
Section 2.6.2 of the documentation
Expansion can differ depending on parameter value and set status and possibly assign.
Substitution can also provide string length and prefix/suffix patterns.
tricks/shell.1613879782.txt.gz · Last modified: 2023/05/30 22:32 (external edit)