シェルスクリプト相談室
at TECH
834:デフォルトの名無しさん
08/03/28 02:54:25
>>831
あるにはあるが、正直面倒。
1) 一時的 IFS 変更
IFS=$'\n' current_files=( $(ls) )
2) for + ワイルドカード
for file in * ; do
current_files[${#current_files[@]}]=$file
done
3) while + read + here strings (パイプは不可)
while read file ; do
current_files[${#current_files[@]}]=$file
done <<< "$(ls -1)"
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5118日前に更新/248 KB
担当:undef