LoginSignup
68
43

More than 5 years have passed since last update.

ls で表示したファイル全てに対して処理を行う

Last updated at Posted at 2013-02-01
#!/bin/sh

for file in `ls`; do
    echo "${file}"
done

↓こっちの方が良いです。

#!/bin/sh

for file in *; do
    echo "${file}"
done
68
43
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
68
43