Suwan's blog
Sunday, September 18, 2011
การอ่านไฟล์ใน Directory โดยใช้ Shell Script
ตัวอย่างด้านล่างแสดงการอ่างไฟล์ที่อยู่ในไดเรคทอรี่ test แล้ว print ออกมาที่ Terminal โดยใช้คำสั่ง echo
FILES=test/* for f in $FILES do echo "$f" done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment