From 41dae4a53d5423e3991c7e88c73d6b9726daa2b5 Mon Sep 17 00:00:00 2001 From: thftgr Date: Sun, 3 Sep 2023 19:15:18 +0900 Subject: [PATCH] =?UTF-8?q?osz=20=EC=A0=9C=EA=B1=B0=20=EC=98=B5=EC=85=98?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script.sh b/script.sh index 39682f8..8289738 100644 --- a/script.sh +++ b/script.sh @@ -1,6 +1,10 @@ # 파생 파일 일괄 삭제 find ./* -maxdepth 1 -type f \( -name '*nv*' -o -name '*nh*' -o -name '*ns*' -o -name '*nb*' \) -exec rm -f {} + +# 파생 파일 검색 +find ./* -maxdepth 1 -type f \( -name '*nv*' -o -name '*nh*' -o -name '*ns*' -o -name '*nb*' \) + +# 파생 파일중 포함된것만 삭제 find ./* -maxdepth 1 -type f -name '*nv*' -exec rm -f {} + find ./* -maxdepth 1 -type f -name '*nh*' -exec rm -f {} + find ./* -maxdepth 1 -type f -name '*ns*' -exec rm -f {} +