I have a bunch of files from log1 to log164.I'm trying to LIST the directory (sorted) in a UNIX terminal but the sort functions are only providing the format like this:home:logs Home$ ls -1 | sortlog1.gzlog10.gzlog100.gzlog101.gzlog102.gzlog103.gzlog104.gzlog105.gzlog106.gz...etcWhat I want ishome:logs Home$ ls -1 | sortlog1.gzlog2.gzlog3.gzlog4.gzlog5.gzlog6.gzlog7.gz...{more here}log99.gzlog100.gzlog101.gzlog102.gz...etcAny suggestions in what I could use to do this? 
List files sorted numerically
ls;filenames;sort;numbering
bash's braces, {}, will enumerate them in order:for file in log{1..164}.gz; do    process $filedone