A
A
AnthonyCherepkov2012-11-04 20:50:10
Perl
AnthonyCherepkov, 2012-11-04 20:50:10

Displaying the nearest holiday in Perl/Bash

Hello $username.

Can you please tell me how to display the nearest holiday using Perl and/or Bash? I am new to these languages, so I have no idea.

Thanks a

lot PS OC - Ubuntu

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oleksandr_veles, 2012-11-04
@oleksandr_veles

man calendar?

R
Riateche, 2012-11-04
@Riateche

wget -qO - http://www.calend.ru/img/export/today-holidays.rss | iconv -f cp1251 -t utf8 | awk '{ if ( match($0, /<title[^>]*>([^<]+)/, tmp) ) print tmp[1]; }' | head -3 | tail -1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question