title: Order of the file reading from a directory in linux
body: <p>If in a directory, suppose there are 100 files with names like file.pcap1, file.pcap2, file.pcap3,....., file.pcap100. In a shell script, to read these file one-by-one, i have written a line like:  </p>
  
  <pre><code>for $file in /root/*pcap*
  do
    Something
  done
  </code></pre>
  
  <p>What is the order by which files are read? Are they read in the increasing order of the numbers which are at the end of the file names? Is this the same case for all types of linux machines?</p>