Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
seven="( . 1 . 1 . 1)" octal="zero one two three four five six seven" for n in $octal do echo $n done
当它达到七时,它会回显“七”。你如何让它回( . 1 . 1 . 1)显哪个是字符串$seven?
( . 1 . 1 . 1)
$seven
seven="( . 1 . 1 . 1)" octal="zero one two three four five six seven" for n in $octal do echo "${!n:-$n}" done