Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ディレクトリにリストされているすべてのファイルと for ループを使用してファイルの数を出力する最良の方法は何ですか? これを行うより良い方法はありますか?
#!/bin/bash target="/home/personal/scripts/07_22_13/ford/$1" for file in "$target"/* do printf "%s\n" "$file" | cut -d"/" -f8 done