>> Delete No. 42501 article
No. bash shell에서 파일을 읽어올때....

등록 2002-02-15 17:03:00 By localhost     조회 2
이름 wizard    

		for file in *
do
read line < $file
echo $line
done
exit 0
 위에서 처럼하면 현재 디렉토리의 모든 파일을 읽어들이는데....
밑에처럼 특정폴더의 모든걸 하면....한개밖에 못읽어여...
어떻게 해야하져? 갈켜주세요~
 for file in /export/home/magic94/testdown/*
do
read line < $file
echo $line
done
exit 0
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved