분류 전체보기 578

SED를 이용한 파일내 문자열 일괄 변환

텍스트파일을 다루거나, 개발자라면 자주 만나는 작업입니다.sed 를 이용하여 한방에...ref : http://unix.stackexchange.com/questions/159367/using-sed-to-find-and-replaceref : http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html replace string in the file : by SED (Stream EDitor) A512.html 안의 모든 411 문자열을 512 로 바꾼다. (1회 수행하려면 g 를 제외)ex) sed -i -e 's/411/512/g' ./A512.html find 를 이용한 확장 사용 (다중 파일처리)$ find /home/da..

편하게 살자 2015.12.04

async.js waterfall 사용방법

ajax 콜을 여러번 시리얼하게 요청 하고자 한다면... 아래의 async waterfall 을 사용하길 추천 합니다... Project : https://github.com/caolan/async Guide: http://hatemogi.com/holiday-project-day-10/waterfall(tasks, [callback])Runs the tasks array of functions in series, each passing their results to the next in the array. However, if any of the tasks pass an error to their own callback, the next function is not executed, and the ma..

프로그램/script 2015.11.24