title: bash script that get first 5 lines and put in another file
body: <p>hi all i need to write a simple bash script that lists all PHP files in a directory and writes the first 5 lines of each PHP-file to new file called : PHP_header</p>
  
  <p>i know only the basic in linux command line </p>
  
  <pre><code>#!/bin/bash
      grep –r stringsearch
      find /opt/-name ‘log_*’
      du –s foldername
      head -10 filename
      mkdir filername.php
  </code></pre>
  
  <p>please explain me how can i complet this </p>