title: Yad (Yet another Dialog) list columns
body: <p>I need some help with YAD. So here is the code:</p>
  
  <pre><code>contact=$(while read line
              do
                  firstname=$(echo $line | awk 'BEGIN { FS="|" } { print $2 }')
                  lastname=$(echo $line | awk 'BEGIN { FS="|" } { print $3 }')
                  num=$(echo $line | awk 'BEGIN { FS="|" } { print $4 }')
                  birthday=$(echo $line | awk 'BEGIN { FS="|" } { print $5 }')
  
                  if [  $firstname != ""  -a  $lastname != "" ] ; then
                      echo "$firstname$lastname"
                  else
                      if [ $firstname != "" ] ; then
                          echo "$firstname,"
                      elif [ $lastname != "" ] ; then
                          echo "$lastname"
                      else
                          echo "$num"
                      fi
                  fi
  
              done &lt; "contactlist.txt" )
  idlist=$(while read line
              do
                  idnum=$(echo $line | awk 'BEGIN { FS="|" } { print $1}')
                  echo $idnum
              done &lt; "contactlist.txt" )
  
  sortcontact=$(printf "%s\n" $contact | sort)
  
  selected=$(yad --title="Contacts" --width=200 --height=200 --button="DISPLAY:2" --button="ADD:3" --list --separator=""  --column="List" $sortcontact --column="ID:NUM" $idlist)
  </code></pre>
  
  <p>The output: the $idlist and $sortcontact are all mixed up.</p>
  
  <p>What I want: the column ID should only have the $idlist while the column List should only have the $sortcontact.</p>
  
  <p>The txt file:</p>
  
  <pre><code>1|Joanne|Perez|9173046751.000000|Mar 31|
  2|Nikko|Real|9065887272.000000|Mar 21|
  3|Try|Haha|9000000000.000000|Jan 15|
  4|Nikko|Real|9065887272.000000|Jan 21|
  5|Paolo|Perez|9212345678.000000|Jan 25|
  </code></pre>