bash-command-substitution Source: https://foxhop.net/f3f1d8ba-2f95-11f1-8421-e86a64d24d78/bash-command-substitution Snapshot: 2026-10-16T05:49:36Z Generator: Remarkbox d747782 This is a thread snapshot. The living document lives at the source URI above — it may have been edited, extended, or replied-to since. [Scan for living source] Bash Command Substitution There are two ways: - wrap the command in "`": myvar=`cat /etc/motd` - wrap the command in "$()": myvar=$(cat /etc/motd) Choose either then then try this: echo $myvar ------------------------------------------------------------------------ Source: https://foxhop.net/f3f1d8ba-2f95-11f1-8421-e86a64d24d78/bash-command-substitution Snapshot: 2026-10-16T05:49:36Z Generator: Remarkbox d747782