title: Parsing text with bash script
body: <p>I want to build a bash script that reads a file and produces some command line parameters. my input file looks like</p>
  
  <pre><code>20.83      0.05     0.05  __adddf3
  20.83      0.10     0.05  __aeabi_fadd
  16.67      0.14     0.04  gaussian_smooth
  8.33      0.16     0.02   __aeabi_ddiv
  </code></pre>
  
  <p>I must detect and copy all the __* strings and turncate them into a command such as</p>
  
  <pre><code>gprof -E __adddf3 -E __aeabi_fadd -E __aeabi_ddiv ./nameof.out
  </code></pre>
  
  <p>So far I use</p>
  
  <pre><code>#!/bin/bash
  while read line
  do
      if [[ "$line" == *__* ]] 
      then
          echo $line;
      fi
  done &lt;input.txt
  </code></pre>
  
  <p>to detect the requested lines but i guess, what i need is a one-line-command thing that i can't figure out. Any kind suggestions?</p>