파일 검색에서 특정 문자열을 제외하려고합니다.쉘에서 와일드 카드 검색에서 문자열을 제외하십시오.
파일 목록 (file_Michael.txt, file_Thomas.txt, file_Anne.txt)이 있다고 가정합니다.
내가 할 수와 나에게 file_Michael.txt 및 file_Anne.txt 있지만 file_Thomas.txt를 제공
ls *<and not Thomas>.txt
같은 것을 쓰고 싶어요.
역은 쉽게 :
ls *[^s].txt
하지만 어떻게 문자열로 그것을 할 : 하나의 문자로 그 일을
ls *Thomas.txt
도 쉽다?
세바스찬 떠들썩한 파티와
가능 중복 [방법 내가 역 사용하거나 제외 와일드 때 유닉스/리눅스 쉘 패턴 매칭? (http://stackoverflow.com/questions/216995/how-can-i-use- inverse-or-negative-wildcards-when-pattern-in-a-unix-linu) – Hasturkun