cal

显示日历

语法

  cal [-mjy] [[month] year]

选项:

 -m      将星期一显示为一周的第一天.

 -j      显示julian 日期(第1天,从1月1日起编号).

 -y      显示当前年份的日历.

单个参数指定要显示的4位数年份r(1 - 9999)

两个参数表示月 (1 - 12) 和年 (1 - 9999).

如果未指定参数,则显示当前月份

一年从1月1日开始

cal 命令实例:

linux命令:calc(){ printf "%.8g\n" $(printf "%s\n" "$*" | bc -l); } } -l); bc | "$*" "%s\n" $(printf "%.8g\n" printf calc(){ calc(){ printf "%.8g\n" $(printf "%s\n" "$*" | bc -l); }rootopen.com
linux命令:calc(){ printf "%.8g\n" $(printf "%s\n" "$*" | bc -l); } } -l); bc | "$*" "%s\n" $(printf "%.8g\n" printf calc(){ calc(){ printf "%.8g\n" $(printf "%s\n" "$*" | bc -l); }rootopen.com
2019-02-12 21:03:52

linux命令:calc(){ awk "BEGIN{ print $* }" ;}; calc "((3+(2^3)) * 34^2 / 9)-75.89" 9)-75.89" / 34^2 * "((3+(2^3)) calc ;}; }" $* print "BEGIN{ awk calc(){ calc(){ awk "BEGIN{ print $* }" ;}; calc "((3+(2^3)) * 34^2 / 9)-75.89"rootopen.com
linux命令:calc(){ awk "BEGIN{ print $* }" ;}; calc "((3+(2^3)) * 34^2 / 9)-75.89" 9)-75.89" / 34^2 * "((3+(2^3)) calc ;}; }" $* print "BEGIN{ awk calc(){ calc(){ awk "BEGIN{ print $* }" ;}; calc "((3+(2^3)) * 34^2 / 9)-75.89"rootopen.com
2019-01-06 22:06:15

linux命令:cal -3 -3 cal cal -3rootopen.com
linux命令:cal -3 -3 cal cal -3rootopen.com
2018-09-11 09:55:30

linux命令:cal -3 2 8 2018 2018 8 2 -3 cal cal -3 2 8 2018rootopen.com
linux命令:cal -3 2 8 2018 2018 8 2 -3 cal cal -3 2 8 2018rootopen.com
2018-09-11 09:55:30

linux命令:cal cal calrootopen.com
linux命令:cal cal calrootopen.com
2018-08-20 22:29:50

linux命令:cal [[month] year] year] [[month] cal cal [[month] year]rootopen.com
linux命令:cal [[month] year] year] [[month] cal cal [[month] year]rootopen.com
2017-12-29 00:04:48

linux命令:cal | grep --before-context 6 --after-context 6 --color -e " $(date +%e)" -e "^$(date +%e)" +%e)" "^$(date -e +%e)" $(date " -e --color 6 --after-context 6 --before-context grep | cal cal | grep --before-context 6 --after-context 6 --color -e " $(date +%e)" -e "^$(date +%e)"rootopen.com
linux命令:cal | grep --before-context 6 --after-context 6 --color -e " $(date +%e)" -e "^$(date +%e)" +%e)" "^$(date -e +%e)" $(date " -e --color 6 --after-context 6 --before-context grep | cal cal | grep --before-context 6 --after-context 6 --color -e " $(date +%e)" -e "^$(date +%e)"rootopen.com
2018-06-09 10:20:48

linux命令:cal -3 -3 cal cal -3rootopen.com
linux命令:cal -3 -3 cal cal -3rootopen.com
2018-04-04 18:23:48

linux命令:cal 09 1752 1752 09 cal cal 09 1752rootopen.com
linux命令:cal 09 1752 1752 09 cal cal 09 1752rootopen.com
2018-01-25 19:17:48

linux命令:cal -y | tr '\n' '|' | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /$(date +%m | sed s/^0//)" | tr '|' '\n' '\n' '|' tr | s/^0//)" sed | +%m /$(date 's/./#/g') sed | +%e $(date / +%e) $(date /;s/ /;s/$/ "s/^/ sed | '|' '\n' tr | -y cal cal -y | tr '\n' '|' | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /$(date +%m | sed s/^0//)" | tr '|' '\n'rootopen.com
linux命令:cal -y | tr '\n' '|' | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /$(date +%m | sed s/^0//)" | tr '|' '\n' '\n' '|' tr | s/^0//)" sed | +%m /$(date 's/./#/g') sed | +%e $(date / +%e) $(date /;s/ /;s/$/ "s/^/ sed | '|' '\n' tr | -y cal cal -y | tr '\n' '|' | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /$(date +%m | sed s/^0//)" | tr '|' '\n'rootopen.com
2018-04-09 03:48:48

linux命令:cal -y -y cal cal -yrootopen.com
linux命令:cal -y -y cal cal -yrootopen.com
2018-02-01 20:36:48

linux命令:calc(){ awk "BEGIN{ print $* }" ;} ;} }" $* print "BEGIN{ awk calc(){ calc(){ awk "BEGIN{ print $* }" ;}rootopen.com
linux命令:calc(){ awk "BEGIN{ print $* }" ;} ;} }" $* print "BEGIN{ awk calc(){ calc(){ awk "BEGIN{ print $* }" ;}rootopen.com
2018-05-29 22:02:48

linux命令:calc() { awk 'BEGIN { OFMT="%f"; print '"$*"'; exit}'; } } exit}'; '"$*"'; print OFMT="%f"; { 'BEGIN awk { calc() calc() { awk 'BEGIN { OFMT="%f"; print '"$*"'; exit}'; }rootopen.com
linux命令:calc() { awk 'BEGIN { OFMT="%f"; print '"$*"'; exit}'; } } exit}'; '"$*"'; print OFMT="%f"; { 'BEGIN awk { calc() calc() { awk 'BEGIN { OFMT="%f"; print '"$*"'; exit}'; }rootopen.com
2018-01-04 05:39:48

linux命令:calendar calendar calendarrootopen.com
linux命令:calendar calendar calendarrootopen.com
2018-03-08 13:33:48

linux命令:calc() { python -c "from math import *; print $1"; } } $1"; print *; import math "from -c python { calc() calc() { python -c "from math import *; print $1"; }rootopen.com
linux命令:calc() { python -c "from math import *; print $1"; } } $1"; print *; import math "from -c python { calc() calc() { python -c "from math import *; print $1"; }rootopen.com
2018-02-10 01:02:48

linux命令:calc() { bc <<< $*; } } $*; <<< bc { calc() calc() { bc <<< $*; }rootopen.com
linux命令:calc() { bc <<< $*; } } $*; <<< bc { calc() calc() { bc <<< $*; }rootopen.com
2017-12-26 10:46:48

linux命令:cal | sed -E "2,8s/(^|[^0-9])($(date +%e))( |$)/\1$(echo "\033[0;36m\2\033[0m")\3/g" "\033[0;36m\2\033[0m")\3/g" |$)/\1$(echo +%e))( "2,8s/(^|[^0-9])($(date -E sed | cal cal | sed -E "2,8s/(^|[^0-9])($(date +%e))( |$)/\1$(echo "\033[0;36m\2\033[0m")\3/g"rootopen.com
linux命令:cal | sed -E "2,8s/(^|[^0-9])($(date +%e))( |$)/\1$(echo "\033[0;36m\2\033[0m")\3/g" "\033[0;36m\2\033[0m")\3/g" |$)/\1$(echo +%e))( "2,8s/(^|[^0-9])($(date -E sed | cal cal | sed -E "2,8s/(^|[^0-9])($(date +%e))( |$)/\1$(echo "\033[0;36m\2\033[0m")\3/g"rootopen.com
2018-01-13 03:06:48

linux命令:calc() { echo "scale=4; ${*//,/.}" | bc -l; } } -l; bc | ${*//,/.}" "scale=4; echo { calc() calc() { echo "scale=4; ${*//,/.}" | bc -l; }rootopen.com
linux命令:calc() { echo "scale=4; ${*//,/.}" | bc -l; } } -l; bc | ${*//,/.}" "scale=4; echo { calc() calc() { echo "scale=4; ${*//,/.}" | bc -l; }rootopen.com
2018-04-08 06:01:48

linux命令:cal |grep -A7 -B7 --color=auto $(date +%d) +%d) $(date --color=auto -B7 -A7 |grep cal cal |grep -A7 -B7 --color=auto $(date +%d)rootopen.com
linux命令:cal |grep -A7 -B7 --color=auto $(date +%d) +%d) $(date --color=auto -B7 -A7 |grep cal cal |grep -A7 -B7 --color=auto $(date +%d)rootopen.com
2018-02-04 19:22:48

linux命令:cal | grep -C7 --color=auto $(date +%d) +%d) $(date --color=auto -C7 grep | cal cal | grep -C7 --color=auto $(date +%d)rootopen.com
linux命令:cal | grep -C7 --color=auto $(date +%d) +%d) $(date --color=auto -C7 grep | cal cal | grep -C7 --color=auto $(date +%d)rootopen.com
2018-04-25 01:04:48

linux命令:cal | egrep -e '^ [0-9]|^[0-9]' | tr '\n' ' ' | awk '{print $NF}' $NF}' '{print awk | ' ' '\n' tr | [0-9]|^[0-9]' '^ -e egrep | cal cal | egrep -e '^ [0-9]|^[0-9]' | tr '\n' ' ' | awk '{print $NF}'rootopen.com
linux命令:cal | egrep -e '^ [0-9]|^[0-9]' | tr '\n' ' ' | awk '{print $NF}' $NF}' '{print awk | ' ' '\n' tr | [0-9]|^[0-9]' '^ -e egrep | cal cal | egrep -e '^ [0-9]|^[0-9]' | tr '\n' ' ' | awk '{print $NF}'rootopen.com
2018-02-16 08:02:48

linux命令:cal 04 2012 | awk 'NF <= 7 { print $7 }' | grep -v "^$" | tail -1 -1 tail | "^$" -v grep | }' $7 print { 7 <= 'NF awk | 2012 04 cal cal 04 2012 | awk 'NF <= 7 { print $7 }' | grep -v "^$" | tail -1rootopen.com
linux命令:cal 04 2012 | awk 'NF <= 7 { print $7 }' | grep -v "^$" | tail -1 -1 tail | "^$" -v grep | }' $7 print { 7 <= 'NF awk | 2012 04 cal cal 04 2012 | awk 'NF <= 7 { print $7 }' | grep -v "^$" | tail -1rootopen.com
2018-06-08 17:06:48

linux命令:cal 04 2012 | awk '{ $7 && X=$7 } END { print X }' }' X print { END } X=$7 && $7 '{ awk | 2012 04 cal cal 04 2012 | awk '{ $7 && X=$7 } END { print X }'rootopen.com
linux命令:cal 04 2012 | awk '{ $7 && X=$7 } END { print X }' }' X print { END } X=$7 && $7 '{ awk | 2012 04 cal cal 04 2012 | awk '{ $7 && X=$7 } END { print X }'rootopen.com
2018-01-03 19:19:48

linux命令:cal | grep -E --color "\b`date +%e`\b|$" +%e`\b|$" "\b`date --color -E grep | cal cal | grep -E --color "\b`date +%e`\b|$"rootopen.com
linux命令:cal | grep -E --color "\b`date +%e`\b|$" +%e`\b|$" "\b`date --color -E grep | cal cal | grep -E --color "\b`date +%e`\b|$"rootopen.com
2018-04-22 00:18:48

Linux的Bash命令行(A-Z排序)