In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "using Shell scripts to beautify the login interface decoration map". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Script 1:
Cat clcal.sh
#! / bin/bash# show Chinese lunisolar calender.# 2011 calendar_data format:# 11 Licensed under GPL version # date data {# + + # | Unit (bit) | 1-4 | 5-16 | 17 | | 18-20 | # +-# | specify | Leap month month | monthly size month | Leap month size month | Null | # +-| -+ calendar_data= (0x04bd8 0x04ae0 0x0a570 0x054d5 0x0d260 0x0d950 0x16554 0x056a0 0x09ad0 0x055d20x04ae0 0x0a5b6 0x0a4d0 0x0d250 0x1d255 0x0b540 0x0d6a0 0x0ada2 0x095b0 0x149770x04970 0x0a4b0 0x0b4b5 0x06a50 0x06d40 0x1ab54 0x02b60 0x09570 0x052f2 0x049700x06566 0x0d4a0 0x0ea50 0x06e95 0x05ad0 0x02b60 0x186e3 0x092e0 0x1c8d7 0x0c9500x0d4a0 0x1d8a6 0x0b550 0x056a0 0x1a5b4 0x025d0 0x092d0 0x0d2b2 0x0a950 0x0b5570x06ca0 0x0b550 0x15355 0x04da0 0x0a5b0 0x14573 0x052b0 0x0a9a8 0x0e950 0x06aa00x0aea6 0x0ab50 0x04b60 0x0aae4 0x0a570 0x05260 0x0f263 0x0d950 0x05b57 0x056a00x096d0 0x04dd5 0x04ad0 0x0a4d0 0x0d4d4 0x0d250 0x0d558 0x0b540 0x0b6a0 0x195a60x095b0 0x049b0 0x0a974 0x0a4b0 0x0b27a 0x06a50 0x06d40 0x0af46 0x0ab60 0x095700x04af5 0x04970 0x064b0 0x074a3 0x0ea50 0x06b58 0x055c0 0x0ab60 0x096d5 0x092e00x0c960 0x0d954 0x0d4a0 0x0da50 0x07552 0x056a0 0x0abb7 0x025d0 0x092d0 0x0cab50x0a950 0x0b4a0 0x0baa4 0x0ad50 0x055d9 0x04ba0 0x0a5b0 0x15176 0x052b0 0x0a9300x07954 0x06aa0 0x0ad50 0x05b52 0x04b60 0x0a6e6 0x0a4e0 0x0d260 0x0ea65 0x0d5300x05aa0 0x076a3 0x096d0 0x04bd7 0x04ad0 0x0a4d0 0x1d0b6 0x0d250 0x0d520 0x0dd450x0b5a0 0x056d0 0x055b2 0x049b0 0x0a577 0x0a4b0 0x0aa50 0x1b255 0x06d20 0x0ada00x14b63) gan= ('A','B','C','D','E','I', 'Geng', 'Xin', 'ren' and 'Gui') zhi= ('son' ugly 'Yin' 'Mao' Chen'Si' Sheng_xiao= (Rat, Bull, Tiger, Rabbit, Snake, Sheep, Monkey, Dog, Dog) jieqi_name= (Lesser Cold, Greater Cold, the Beginning of Spring, Rain Water, sting, the Spring Equinox, Qingming Festival, Grain Rain) The Beginning of Summer, Lesser Fullness of Grain, Grain in Beard, the Summer Solstice, Lesser Heat, the Beginning of Autumn, the End of Heat, White Dew, the Autumn Equinox, Cold Dew, Frosts Descent, the Beginning of Winter, Lesser Snow, Daxue, the Winter Solstice) jieqi_data= (0 21208 42467 63836 85337 107014 128867 150921 173149 19551 2180693 263343 285989 308563 331033 353350 375494 397447 419210 440795 462224 483532 504758) yueri_name1= Yueri_name2= (10, 1, 2, 3, 4, 5, 7, 8, 9, 11, La, Zheng) # Lunar Festival jieri= [1208] = 'eight years' [1223] = 'Xiao Nian' [1223] = 'New Year's Eve') # Public Holiday Day festival= People's Rights and interests Day = 'April Fool's Day' = 'International Labour Day' = 'Youth Day' [701] = 'Anniversary of the return of Hong Kong' [1002] = 'Anti-Japanese War Remembrance Day' = 'The Army's Day' = 'teacher's Day' [1001] = 'National Day' [1002] = 'National Day' Holiday'[1003] = 'National Day Holiday' [1220] = 'commemoration of Macao's return to the motherland' [1224] = 'Christmas Eve' [1225] = 'Christmas') #}} # Lunar calendar which month is a leap month in a certain year There is no leap which_run_yue nianwhich_run_yue () {echo $((${calendar_data [$1-1900]} & 0xF) } # days of leap months in a lunar year # days_of_run_rue niandays_of_run_rue () {($(which_run_yue $1)\ & & echo $((${calendar_data [$1-1900]} & 0x10000?30:29))\ | | echo 0} # days of a lunar year # days_of_nian niandays_of_nian () {local nian=$ (($1-1900)) local sum=0 for ((icalendar 0x8000; I > 8; I > 1) Do ((${calendar_data [$nian]} & $I) & ((sum++)) done echo $(($sum+$ (days_of_run_rue $1) + 348))} # shows whether the name of the stem branch # show_ganzhi ganzhi_numshow_ganzhi () {echo ${gan [$1]} ${zhi [$1]}} # is a Gregorian leap year # is_bissextile yearis_bissextile () {(($1% 4 = = 0 & $10!) 0) | | $1% 400 = = 0)) & & return 0 | | return 1} # the number of days from the beginning of a year to the month before a certain month Ignore # sum_to_premonth year monthsum_to_premonth () {local sum=$ (($2-1? ($2-1) * 30:0)) for ((iTun1) in January I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.