title: How to make "dictionary" with shell functions?
body: <p>This is my code:</p>
  
  <pre><code>#!/bin/sh
  echo "ARGUMENTS COUNT : " $#
  echo "ARGUMENTS LIST  : " $*
  
  dictionary=`awk '{ print $1 }'`
  
  function()
  {
     for i in dictionary
     do
        for j in $*
        do
           if [ $j = $i ]
           then
              ;
           else
              append
           fi
        done
     done
  }
  
  append()
  {
     ls $j &gt; dictionary1.txt
  }
  
  function
  </code></pre>
  
  <p>I need using unix shell functions make "dictionary". For example: I write in arguments default word, example <code>hello</code>. Then my function checks the file <code>dictionary1</code> if that word is existing in the file. If not - append that word in file, if it's already exist - do nothing.</p>
  
  <p>For some reason, my script does not work. When I start my script, it waits for something and that's it.</p>
  
  <p>What I am doing wrong? How can I fix it?</p>