Top "Command-substitution" questions

Command substitution is the replacement of a command with the result returned after it is evaluated.

How do I assign the output of a command into an array?

I need to assign the results from a grep to an array... for example grep -n "search term" file.txt | …

arrays bash command-substitution
Backticks vs braces in Bash

When I went to answer this question, I was going to use the ${} notation, as I've seen so many times …

bash command-substitution
How to avoid bash command substitution to remove the newline character?

To speed up some bash script execution, I would like to keep the result of a command in a variable …

bash newline command-substitution
Escaping backslash in AWK in command substituion

I am trying to escape backslash in AWK. This is a sample of what I am trying to do. Say, …

bash awk backslash command-substitution
Fish equivalent of bash $(command) notation

I am currently trying out the fish shell instead of using bash. One type of notation I'm having trouble learning …

shell fish command-substitution
Shell sha1($salt.$password) error

I try to do something like this directly on my console as some testruns : It does not seem to work.. …

bash string-concatenation command-substitution