I need to save an output of a command in a variable and then to use it. Currently.
newExtend= $(awk 'NR=='$cont $directy)
echo $newExtend
I need to save an output of a command in a variable and then to use it. Currently.
newExtend= $(awk 'NR=='$cont $directy)
echo $newExtend
Try:
newExtend = `awk 'NR==' $count $directory`
Those are backticks.