>> Read Reply from No. 4360 article  
RE: 명령어중에...디렉토리만 출력하는 방법

등록 2000-08-31 21:28:00     조회 2
이름 qKing    

		: 저는 쉘 프로그램에서....사용할려구.
: 이런 명령어 없는지..궁금합니다.
:
: 가령....   ls 나 dir 하면.
: 그 현 디렉토리 내의 디렉토리랑...파일명 까지 출력됩니다.
: 제가 바라는 것은.
: 디렉토리명만..출력할 수 있는 방법은 없는지..궁금.
: 그럼 부탁드립니다..^^
 이 문제에 대해서는 "1원짜리 팁" 란에서 엄청난 쓰레드를 형성한
기억이 있죠. KLDP에서도 본것 같구요.
 $ man ls
...(중략)...
 -d, --directory
     list directory entries instead of contents
 사용례
 $ ls -ld /etc/*/
drwxr-xr-x   3 root     root         4096 Jan  1  1999 /etc/CORBA//
drwxr-xr-x  12 root     root         4096 Jan  1  1999 /etc/X11//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/charsets//
drwxr-xr-x   2 root     root         4096 Aug 29 12:53 /etc/codepages//
drwxr-xr-x   2 root     root         4096 Jun  5 17:14 /etc/cron.d//
drwxr-xr-x   2 root     root         4096 Jun 12 16:26 /etc/cron.daily//
drwxr-xr-x   2 root     root         4096 Aug 27  1999 /etc/cron.hourly//
drwxr-xr-x   2 root     root         4096 Jun 20 10:40 /etc/cron.long//
drwxr-xr-x   2 root     root         4096 Aug 27  1999 /etc/cron.monthly//
drwxr-xr-x   2 root     root         4096 Aug  7 12:57 /etc/cron.weekly//
drwxr-x---   2 root     root         4096 Jan  1  1999 /etc/default//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/gtk//
drwxr-xr-x   3 root     root         4096 Jun 12 18:41 /etc/httpd//
drwxr-xr-x   2 root     root         4096 Aug 29 12:53 /etc/logrotate.d//
drwxr-xr-x   2 root     root         4096 Aug 31 21:10 /etc/mail//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/midi//
drwxr-xr-x   2 root     root         4096 Aug 29 14:12 /etc/pam.d//
drwxr-xr-x   3 root     root         4096 Jan  1  1999 /etc/pcmcia//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/ppp//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/profile.d//
drwxr-xr-x   3 root     root         4096 Aug  4 11:41 /etc/proftpd//
drwxr-xr-x  10 root     root         4096 Aug 25 14:58 /etc/rc.d//
drwxr-xr-x   3 root     root         4096 Jun  7 12:16 /etc/security//
drwxr-xr-x   5 root     root         4096 Jun 24 13:05 /etc/skel//
drwxr-xr-x   2 root     root         4096 Aug  9 02:28 /etc/smrsh//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/snmp//
drwxr-xr-x   3 root     root         4096 Oct 10  1999 /etc/sound//
drwxr-xr-x   2 root     root         4096 Jul 25 17:35 /etc/ssh2//
drwxr-xr-x   5 root     root         4096 Aug 28 14:59 /etc/sysconfig//
drwxr-xr-x   2 root     root         4096 Jan  1  1999 /etc/vga//
21:25:22 [long@queen: ~]$--qKing
이름
암호


>> 관련글
4360 명령어중에...디렉토리만 출력하는 방법  박지훈  2000.08.31  ....
  답장 RE: 명령어중에...디렉토리만 출력하는 방법  qKing  2000.08.31  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 1.99 초 ] 작업시간: [ 1.45 초 ]

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

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789811716
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.