파일내 키워드 검색 작업
-
FreeStyle 작업 생성
-
General 설정에 빌드 파라미터 옵션 추가
-
File Paramter
File location: target_file
-
Multi-line String Parameter
Name: keyword .Build 설정에 Execute shell 스텝 추가
Commandmkdir -p output output="output/result-$(date +%Y%m%d_%H%M%S).txt" arr=() while read -r line; do arr+=("$line") done <<< "$keyword" for key in "${arr[@]}"; do cat target_file | grep "$key" >> ${output} done
-