Is there a way to assign a value to a variable, that value which we get in terminal by writing any command?
I try with this code:
!number_of_lines=$(wc -l < cord_19.json)
!echo $number_of_lines
I get empty output. When I run
!wc -l < cord_19.json
I get correct response with number.
Do you have idea what is wrong or how can I set variable?