crontab 내부에 있는 line 중, 특정 문자열(ex. target 문자)이 들어간 줄만 grep하고 싶다면?
$ crontab -l | grep 'target'
crontab option list
| file | Load the crontab data from the specified file. If file is a dash ("-"), the crontab data is read from standard input. |
| -u user | Specifies the user whose crontab is to be viewed or modified. If this option is not given, crontab opens the crontab of the user who ran crontab. Note: using su to switch users can confuse crontab, so if you are running it inside of su, always use the -u option to avoid ambiguity. |
| -l | Display the current crontab. |
| -r | Remove the current crontab. |
| -e | Edit the current crontab, using the editor specified in the environment variable VISUALor EDITOR. |
| -i | Same as -r, but gives the user a yes/no confirmation prompt before removing the crontab. |
| -s | SELinux only: appends the current SELinux security context string as an MLS_LEVELsetting to the crontab file before editing or replacement occurs. See your SELinux documentation for detailed information. |
반응형
'개발이야기' 카테고리의 다른 글
| 컨트리뷰터가 되기 위해 opensource에 pull request날린 후기 #2 - pull request 날리기 (0) | 2018.07.19 |
|---|---|
| 컨트리뷰터가 되기 위해 opensource에 pull request날린 후기 #1 - 어떤 프로젝트에 기여할까? (0) | 2018.07.19 |
| 특정 다수 프로세스 grep 하여 모두 kill 하기 - kill grep awk (0) | 2018.03.22 |
| [Intellij] 200% 활용하기(toolbox, jira, git 등) (3) | 2018.02.24 |
| 비트코인과 리플코인, 퀀텀코인 개발자 분석을 통한 호재 파악 (0) | 2018.01.09 |
| 해외 IT 교육 사이트 소개 Team treehouse (0) | 2017.07.09 |