title: Check for symbolic link
body: <p>I have a symbolic link a.c in my home directory to another file in the same directory.</p>
  
  <p>a.c -> b.c</p>
  
  <p>I know how to check a.c is a symbolic link using the shell script</p>
  
  <pre><code>if [ -L /home/nit/a.c ] ; then
      echo "a.c is a symbolic link"
  fi
  </code></pre>
  
  <p>But my question is how to write a shell script to check whether a.c is a symbolic link specifically to b.c ?</p>
  
  <p>Thanks</p>