BashBites:Loop Through in a Directory Dec 28th, 2013 The trick is really easy. Just to keep record.Here we take the /tmp folder as the desired one. 1 2 3 4 5 6 #!/bin/bash cd /tmp for file in `ls` do echo $file done Others Learning the bash Shell: Unix Shell Programming (In a Nutshell (O’Reilly)) 快来解锁最新版 Typora,新用户券后仅需 84 元! 如何便宜的购买 office 365 ? 新版赤友 NTFS 助手来袭,正版超低价