BashBites:Loop Through in a Directory

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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

扫码关注云+社区

领取腾讯云代金券