파일 · 명령 참조
qzx findText
기능
고급 필터를 사용해 파일에서 텍스트 패턴을 찾습니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.9에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.9에 해당합니다.
동작 및 내장 보호
상태를 변경하지 않고 검사합니다
이 작업은 직접 실행됩니다
네이티브 프로그램을 호출하지 않고 작동합니다
네트워크를 사용하지 않고 작동합니다
권한 상승 없이 작동하도록 설계되었습니다
이 안전 분류는 2026-08-25에 OpenAI GPT-5.6 Pro가 구현 다이제스트 sha256:2aeda2f46c91d3f2a806da12a8f604fdcb90f6f0959d6c35a51b3c785c9e6d34를 기준으로 검토했습니다.
정확한 구문
qzx findText <pattern> <target> [recursive] [regex] [case_sensitive] [file_pattern] [context_lines] [invert_match] [count_only] [max_matches] [colored] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| pattern | str | 예 | 선언되지 않음 | 검색할 텍스트 패턴(정규식 지원) |
| target | str | 예 | 선언되지 않음 | 검색할 파일, 디렉터리 또는 공백으로 구분된 파일/디렉터리 목록 |
| recursive | str | 아니요 | 선언되지 않음 | 재귀 수준: -r/--recursive는 제한 없음, -rN/--recursiveN은 최대 N단계 깊이 |
| regex | bool | 아니요 | false | 패턴 비교에 정규식 사용(true/false) |
| case_sensitive | bool | 아니요 | true | 검색 시 대소문자 구분(true/false) |
| file_pattern | str | 아니요 | "*" | 이 패턴과 일치하는 파일에서만 검색(예: "*.py" 또는 "*.{py,js}") |
| context_lines | int | 아니요 | 0 | 각 일치 항목 앞뒤에 표시할 줄 수 |
| invert_match | bool | 아니요 | false | 패턴과 일치하지 않는 줄 표시(true/false) |
| count_only | bool | 아니요 | false | 파일별 일치 수만 표시(true/false) |
| max_matches | int | 아니요 | 0 | 표시할 최대 일치 수(0은 제한 없음) |
| colored | bool | 아니요 | true | 일치 항목을 색상으로 강조(true/false) |
입력 예제
qzx findText "function" "script.js"JavaScript 파일에서 "function"의 모든 출현 찾기
qzx findText "error" "logs" truelogs 디렉터리 파일에서 "error"의 모든 출현 찾기
qzx findText "def\s+\w+" "src" true true정규식을 사용해 Python 파일에서 함수 정의 찾기
qzx findText "WARNING|ERROR" "logs" true true false "*.log"로그 파일에서 경고 또는 오류 찾기
qzx findText "TODO" "src" true false true "*.{py,js,ts}" 2소스 파일에서 TODO를 찾고 문맥 2줄 표시
qzx findText "function" "file1.js file2.js lib/utils.js"여러 지정 파일에서 "function"의 모든 출현 찾기
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx findText <pattern> <target> [recursive] [regex] [case_sensitive] [file_pattern] [context_lines] [invert_match] [count_only] [max_matches] [colored] --json
관찰된 출력 예제
Windows 11의 QZX 0.2.2.0.9에서 캡처했으며 종료 코드는 0입니다. 호스트에 따라 달라지는 값과 실행 시간은 변할 수 있습니다.
예제 명령: qzx findText QZX ../artifacts/qzx-evidence/golden-core-files -r --regex=false --case-sensitive=false "--file-pattern=*.txt" --context-lines=1 --max-matches=10 --colored=false --json
{
"success": true,
"pattern": "QZX",
"target": "../artifacts/qzx-evidence/golden-core-files",
"regex": false,
"case_sensitive": false,
"file_pattern": "*.txt",
"recursive": "unlimited",
"context_lines": 1,
"invert_match": false,
"files_searched": 2,
"files_with_matches": 2,
"total_matches": 2,
"results": [
{
"file": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\golden-core-files\\alpha.txt",
"matches": 1,
"lines": [
{
"line_num": 1,
"content": "QZX alpha evidence",
"is_match": true
},
{
"line_num": 2,
"content": "second line",
"is_match": false
}
]
},
{
"file": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\golden-core-files\\nested\\gamma.txt",
"matches": 1,
"lines": [
{
"line_num": 1,
"content": "prefix qzx suffix",
"is_match": true
}
]
}
],
"message": "Found 2 matches in 2 files (including all subdirectories)",
"meta": {
"command": "findText",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 7.362,
"schema_version": 1
}
}JSON 결과 계약 보기
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message",
"meta"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
"case_sensitive": [],
"context_lines": [],
"error": {
"type": "string"
},
"file_pattern": [],
"files_searched": [],
"files_with_matches": [],
"invert_match": [],
"pattern": [],
"recursive": {
"type": "string"
},
"regex": [],
"results": [],
"target": [],
"total_matches": []
},
"additionalProperties": true
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
{
"success": false,
"error": "Invalid regular expression: unterminated character set at position 0",
"message": "Invalid regular expression: unterminated character set at position 0",
"meta": {
"command": "findText",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 4.133,
"schema_version": 1
}
}캡처된 명령: qzx findText "[" ../artifacts/qzx-evidence/golden-core-files -r --regex=true --max-matches=1 --colored=false --json
근거 흐름: 캡처 및 다이제스트 검증 완료.
근거 및 출처
- 문서 채널
- 개발 문서 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- 제공 여부
- 0.2.2.0.9 또는 이전
계속 살펴보기
관련 명령
이 명령들도 파일 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.