단맛만좋아요
홈
태그
미디어로그
위치로그
방명록
java-programming
맥에서 .DS_Store 자동으로 지우기
hongiiv
2007. 3. 19. 18:52
반응형
#!/bin/bash clear echo " ############################### # .DS_Store Cleaner # ############################### # Removes all .DS_Store files # # in a specified folder. # # SystemsBoy -05-03-05- # ---------------------------------------------------- Mac OS X puts .DS_Store files in every directory on your filesystem. These files contain information about the appearance of the window when the direc- tory is open. .DS_Store determines window size, position, and view style, i.e. column, list or icon. This script removes all .DS_Store files within a specified folder and within that folder's children. ---------------------------------------------------- " echo " Please enter the path to the folder..." read folder echo " Are you sure you want to remove all .DS_Store files in: \"$folder\"?... (Y/N)" read sure if [ $sure = Y -o $sure = y ] then # removal routine # sudo find "$folder" -name .DS_Store -exec rm -rf {""} \; echo " ---------------------------------------------------- All .DS_Store files have been removed from: \"$folder\" and its subfolders. You will find windows set back to their original positions, sizes and view styles. Bye now. " else echo " Never mind then... " fi exit 0
이거 자동으로 생기는데 꽤 불편할때도 있군요. 구글링해서 찾은 .DS_Store 파일을 자동으로 지우는 스크립트 ^^
반응형
공유하기
게시글 관리
구독하기
단맛만좋아요
티스토리툴바