Bash variable assignment

From thelinuxwiki
Revision as of 22:27, 25 February 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

backticks

use backticks when assigning the result of a command

example

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