차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
tech:리눅스_목록의_파일_지우기 [2015/09/08 09:44] – 만듦 V_Ltech:리눅스_목록의_파일_지우기 [2016/07/12 00:56] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +{{tag>리눅스 목록의 파일 지우기 우분투 linux}}
 ====== 리눅스 파일이름으로 된 목록을 불러와서 해당 파일 지우기 ====== ====== 리눅스 파일이름으로 된 목록을 불러와서 해당 파일 지우기 ======
  
줄 4: 줄 5:
 일괄적으로 지운다. 일괄적으로 지운다.
  
 +=====Bash=====
  
-[[bash]]의 명령어 대치 기능을 이용한 방법+[[bash]]의 명령어 대치 (Command Substitution) 기능을 이용한 방법
   rm -rf `cat /path/to/files_to_remove.txt`   rm -rf `cat /path/to/files_to_remove.txt`
  
줄 20: 줄 22:
   perl -lne 'unlink' files_to_remove.txt   perl -lne 'unlink' files_to_remove.txt
  
 +
 +=====참고=====
 +
 +  *  출처 http://serverfault.com/questions/175348/remove-files-that-are-listed-in-a-text-file
 +  * [[파일_찾아_복사하기_리눅스|리눅스 파일_찾아_복사하기]]
  
  
- 출처 http://serverfault.com/questions/175348/remove-files-that-are-listed-in-a-text-file 
  
  
-{{tag>리눅스 목록의 파일 지우기}}