awk : 원하는 문구만 추출
# 파일 내용을 원하는 패턴에 맞게 출력 할 수가 있습니다.# 'blank' : 구분자('blank'는 예시)# {print $2} : 결과값 출력awk -F 'blank' '{print $2}' # 이해가 되지 않을 수 있으니, 예시를 한번 들어보겠습니다.# 원본 내용[root@mac18-01 home]# cat test.sqlinsert into temp1.test_profileinsert into temp2.test_profileinsert into temp3.test_profileinsert into temp4.test_profileinsert into temp4.test_user# 'temp'를 구분자로 하여 2번째 인자값을 가져옵니다.[root@mac18-01 home]# cat test.sq..
2024.11.19