Bash variable assignment

From thelinuxwiki
Jump to: navigation, search

backticks

use backticks when assigning the result of a command

example

cidr=`awk -F / \'{print $2}\'`