 <p>Use grep:</p> <pre><code> grep ^hello file | awk '{print $2}' </code></pre> <p><code>^</code> is to match lines that starts with "hello". This is assuming you want to print the second word.</p> <p>If you want to print all words except the first then:</p> <pre><code> grep ^hello file | awk '{$1=""; print $0}' </code></pre>