노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


awk print



':'를 구분자로 첫번째 파일명을 출력

$ file * | grep HTML | grep -v jpg | awk -F: '{print $1}'



print문장에 명령어를 추가하고 shell로 저장

$ file * | grep HTML | grep -v jpg | awk -F: '{print "mv " $1 " " $1".old" }' > a.sh



참조 : http://www.commandlinefu.com/commands/view/1138/ps-ef-grep-process-grep-v-grep-awk-print-2-xargs-kill-9


$ ps -ef | grep PROCESS | grep -v grep | awk '{system "kill -9" $2}


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,