Grep from S3

$ s3cmd ls --recursive s3://mys3.com/bucket1/ | awk '{print $4}' | grep '.gz' | xargs -I@ s3cmd get @ - | zgrep 'request' | wc -l

MySQL

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SetRootPasswordHere';

Git

리비전간 비교

$ git diff commit_id HEAD [filename]

Linux

특수문자 파일/폴더 삭제

$ ls -li
$ find . -inum 342324 -delete
$ find . -inum 342324 -exec rm -i {} ';'

로그에서 IP 제거

$ zcat *.gz | perl -pe 's/([0-9]{1,3}\\.){3}[0-9]{1,3}/IP/g