Linux - ls 와일드 카드 사용 조회

Posted 09 5, 2013 18:38, Filed under: System/UNIX


와일드카드 설명
 *  매칭되는 모든 문자
 ?  매칭되는 하나의 문자
 [characters]  아래의 문자 매칭
   [:alnum:]  알파벳과 숫자
   [:alpha:]  알파벳 문자
   [:digit:]  숫자 번호
   [:upper:]  알파벳 대문자
   [:lower:]  알파벳 소문자
 [!characters]  [characters] 에 정의한 문자열이 아닌 문자


# ls 명령 와일드 카드 사용


[test@master lib]$ ls
Abc.txt         ct.sym  ir.idl             javafx-mx.jar  jexec    sa-jdi.jar  visualvm
ant-javafx.jar  dt.jar  javafx-doclet.jar  jconsole.jar   orb.idl  tools.jar

> java로 시작하는 모든 파일
[test@master lib]$ ls java*
javafx-doclet.jar  javafx-mx.jar

> t로 시작하는 것중에 .jar로 끝나는 파일
[test@master lib]$ ls t*.jar
tools.jar

> sa로 시작하는 것중에 물음표(?)의 갯수와 일치하는 파일
[test@master lib]$ ls sa???????
ls: cannot access sa???????: 그런 파일이나 디렉터리가 없습니다
[test@master lib]$ ls sa????????
sa-jdi.jar

> a, s, d 로 시작하는 모든 파일
[test@master lib]$ ls [asd]*
ant-javafx.jar  dt.jar  sa-jdi.jar

> 대문자로 시작하는 모든 파일
[test@master lib]$ ls [[:upper:]]
ls: cannot access [[:upper:]]: 그런 파일이나 디렉터리가 없습니다
[test@master lib]$ ls [[:upper:]]*
Abc.txt

> 대문자로 끝나지 않는 모든 파일, 소문자로 끝나는 파일
[test@master lib]$ ls *[![:upper:]].*
Abc.txt  ant-javafx.jar  ct.sym  dt.jar  ir.idl  javafx-doclet.jar  javafx-mx.jar  jconsole.jar  orb.idl  sa-jdi.jar  tools.jar


※ 위 내용은, 여러 자료를 참고하거나 제가 주관적으로 정리한 것입니다.
   잘못된 정보나 보완이 필요한 부분을, 댓글 또는 메일로 보내주시면 많은 도움이 되겠습니다.
09 5, 2013 18:38 09 5, 2013 18:38


Trackback URL : http://develop.sunshiny.co.kr/trackback/957

  1. creating roku channel

    Tracked from creating roku channel 05 24, 2020 17:30 Delete

    Get here professional streaming tv services currently open for service in addition reasonably priced now!

  2. public address transmitter software

    Tracked from public address transmitter software 05 25, 2020 08:36 Delete

    Get now the best school pa system currently this week available and now in stock in addition reasonably priced this week only!

  3. roku tv app

    Tracked from roku tv app 05 25, 2020 09:26 Delete

    Get here professional Roku App Development currently open for service and on sale now!

  4. page

    Tracked from page 05 28, 2020 16:18 Delete

    Get amazing invoice printing and mailing services right now on sale and gets you ROI now!

  5. click

    Tracked from click 05 30, 2020 10:08 Delete

    Find very professional billing mailing services that's today on sale and gets your cash flowing now!

  6. utility bill print and mail service

    Tracked from utility bill print and mail service 05 31, 2020 00:35 Delete

    Get amazing mail printing services currently on sale and gets your cash flowing now!

  7. roku advertising

    Tracked from roku advertising 06 14, 2020 10:57 Delete

    Get here expert review currently open for service and reasonably priced now!

  8. streaming tv

    Tracked from streaming tv 06 16, 2020 18:55 Delete

    Profit from amazing roku tv currently open for service in addition on sale now!

  9. a fantastic read

    Tracked from a fantastic read 06 28, 2020 14:21 Delete

    Get a top phoenix website design that is now available and on sale now only!

  10. browse around these guys

    Tracked from browse around these guys 07 7, 2020 00:15 Delete

    Profit from expert creating a tv channel currently open for service and reasonably priced now!

  11. dog wheelchair all legs

    Tracked from dog wheelchair all legs 07 7, 2020 01:27 Delete

    Profit from amazing small dog wheelchairs currently taking on new clients and on sale now!

  12. closet accessories phoenix az

    Tracked from closet accessories phoenix az 07 10, 2020 20:04 Delete

    Get the the top closets organizers that is now available in addition at reasonable prices now only!

  13. More about the author

    Tracked from More about the author 07 11, 2020 22:28 Delete

    Get here expert have a peek at these guys currently taking on new clients and reasonably priced now!

  14. useful reference

    Tracked from useful reference 07 13, 2020 00:50 Delete

    Profit from amazing fishing outfitter in montana currently open for service and reasonably priced now!

Leave a comment
[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다

« Previous : 1 : ... 77 : 78 : 79 : 80 : 81 : 82 : 83 : 84 : 85 : ... 648 : Next »

Recent Posts

  1. HDFS - Python Encoding 오류 처리
  2. HP - Vertica ROS Container 관련 오류...
  3. HDFS - Hive 실행시 System Time 오류
  4. HP - Vertica 사용자 쿼리 이력 테이블...
  5. Client에서 HDFS 환경의 데이터 처리시...

Recent Comments

  1. 안녕하세요^^ 배그핵
  2. 안녕하세요^^ 도움이 되셨다니, 저... sunshiny
  3. 정말 큰 도움이 되었습니다.. 감사합... 사랑은
  4. 네, 안녕하세요. 댓글 남겨 주셔서... sunshiny
  5. 감사합니다 많은 도움 되었습니다!ㅎㅎ 프리시퀸스

Recent Trackbacks

  1. print & mail services print & mail services 13 07
  2. montana fishing vacations montana fishing vacations 13 07
  3. decks colorado decks colorado 13 07
  4. phoenix az closet organizers phoenix az closet organizers 13 07
  5. useful reference useful reference 13 07

Calendar

«   07 2020   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Bookmarks

  1. 위키피디아
  2. MysqlKorea
  3. 오라클 클럽
  4. API - Java
  5. Apache Hadoop API
  6. Apache Software Foundation
  7. HDFS 생태계 솔루션
  8. DNSBL - Spam Database Lookup
  9. Ready System
  10. Solaris Freeware
  11. Linux-Site
  12. 윈디하나의 솔라나라

Site Stats

TOTAL 3006606 HIT
TODAY 47 HIT
YESTERDAY 1048 HIT