wc -l file to a variable
15296
How can I assign the output of a command to a shell variable?
8073
How can I get the list of files in a directory using C or C++?
102723
Storing output of shell script to variable
14081
Use a shell variable in awk
148916
Is there a more succinct alternative to piping to wc for counting files in a directory
14486
What is the variable that contains the source file name?
90600
How to get error output and store it in a variable or file
140247
How to store output command in variable and use this varible again for next command after pipe
105351
how to write variables value with file_put_contents()?
103046
How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script
106734
Redirecting output to a variable?
64218
Storing output of command in shell variable
81386
Have a file named ~ (tilde) in my home-directory
135008
Using shell variables for command options
52730
How can I use a variable as a variable name in Perl?
149079
How can I capture the result of var_dump to a string?
158203
Variable containing a path as a string to multi-dimensional array?