mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 10:52:24 +01:00
Add crontab syntax
This commit is contained in:
8
tests/syntax-tests/highlighted/Crontab/crontab.tab
vendored
Normal file
8
tests/syntax-tests/highlighted/Crontab/crontab.tab
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;255;255;255m/bin/sh[0m[38;2;255;255;255m backup.sh[0m
|
||||
[38;2;190;132;255m*[0m[38;2;248;248;242m/[0m[38;2;190;132;255m10[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;255;255;255m/home/maverick/check-disk-space[0m
|
||||
[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m[38;2;248;248;242m,[0m[38;2;190;132;255m17[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;255;255;255m/scripts/script.sh[0m
|
||||
[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;102;217;239msun[0m[38;2;248;248;242m [0m[38;2;102;217;239m[[0m[38;2;255;255;255m [0m[38;2;255;255;255m$[0m[38;2;255;255;255m([0m[38;2;255;255;255mdate[0m[38;2;255;255;255m +[0m[38;2;255;255;255m%[0m[38;2;255;255;255md[0m[38;2;255;255;255m)[0m[38;2;255;255;255m [0m[3;38;2;253;151;31m-[0m[3;38;2;253;151;31mle[0m[38;2;255;255;255m 07 [0m[38;2;102;217;239m][0m[38;2;255;255;255m [0m[38;2;249;38;114m&&[0m[38;2;255;255;255m [0m[38;2;255;255;255m/script/script.sh[0m
|
||||
[38;2;255;255;255m@[0m[38;2;190;132;255mdaily[0m[38;2;248;248;242m [0m[38;2;255;255;255m/scripts/script.sh[0m
|
||||
[38;2;255;255;255m@[0m[38;2;190;132;255mreboot[0m[38;2;248;248;242m [0m[38;2;255;255;255m/scripts/script.sh[0m
|
||||
|
||||
[38;2;255;255;255mMAIL[0m[38;2;249;38;114m=[0m[38;2;230;219;116mbob[0m
|
8
tests/syntax-tests/source/Crontab/crontab.tab
vendored
Normal file
8
tests/syntax-tests/source/Crontab/crontab.tab
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
0 2 * * * /bin/sh backup.sh
|
||||
*/10 * * * * /home/maverick/check-disk-space
|
||||
0 5,17 * * * /scripts/script.sh
|
||||
0 2 * * sun [ $(date +%d) -le 07 ] && /script/script.sh
|
||||
@daily /scripts/script.sh
|
||||
@reboot /scripts/script.sh
|
||||
|
||||
MAIL=bob
|
Reference in New Issue
Block a user