|
From: | Alan D. Salewski |
Subject: | Re: sed with Variable Substitution in the command |
Date: | Sat, 21 Sep 2024 15:41:15 -0400 |
User-agent: | Mutt/2.0.5 (2021-01-21) |
On 2024-09-21 13:54:41, "Alan D. Salewski" <salewski@att.net> spake thus: [...]
Sometimes using the braces would "look odd" to experienced shell folks, and are omitted by convention: echo $1 $2 $3 # looks "odd"
^^^ s/odd/normal/
echo "$1" "$2" "$3" # same here, and safer in general echo ${1} ${2} ${3} # looks "odd" echo "${1}" "${2}" "${3}" # ditto
[...] -- a l a n d. s a l e w s k i ads@salewski.email salewski@att.net https://github.com/salewski
[Prev in Thread] | Current Thread | [Next in Thread] |