생활코딩
생활코딩
mysql 중복 데이터 삭제
매번 인터넷에서 찾다쓰다, 귀찮아 나중에 한번에 쓰기 위해 기록한다. 아래 사이트를 참조했다. 지운 후, rollback https://stackoverflow.com/questions/11011384/how-to-test-an-sql-update-statement-before-running-it inner join http://rapapa.net/?p=311 중복
생활코딩
xargs로 여러 줄을 한줄로 줄이기
https://stackoverflow.com/questions/15758814/turning-multiple-lines-into-one-line-with-comma-separated-perl-sed-awk file aaa bbb ccc ddd xargs cat file | xargs result aaa bbb ccc ddd xargs improoved cat file
생활코딩
SED로 같은 행에 단어 추가
https://stackoverflow.com/questions/35252285/insert-text-with-sed-on-the-same-line-that-pattern-search sed로 정규 표현을 찾아, 같은 라인의 마지막에 삽입하는 명령. sed ‘s/\blocalhost\b/& 192.168.25.50/’ file \b: a zero-width word boundary &: