aspirinus

vars

Jul 24th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1.     awk < var_list 'BEGIN {FS="|"} {print $1,$2}' |
  2.         while read name value
  3.         do
  4.             if test -n "$value" ; then
  5.                 echo "$name = $value"
  6.             else
  7.                 echo "$name is not set"
  8.             fi
  9.         done
Advertisement
Add Comment
Please, Sign In to add comment