title: How can I replace dot in Bash shell?
body: <p>I want to do something like this:</p>
  
  <pre><code>echo "abc edg.txt" | awk -F. '{print $0"---"$1}'
  </code></pre>
  
  <p>I expect the result should be:</p>
  
  <blockquote>
    <p>abc edg---txt</p>
  </blockquote>
  
  <p>but it turns out to be:</p>
  
  <blockquote>
    <p>abc edg.txt---abc edg</p>
  </blockquote>
  
  <p>What is causing this behavior, and how can I fix my code to produce the output that I expect?</p>