] Если вы знаете, что ваш вывод всегда будет в формате []X[] строк заголовка и []Y[] строк нижнего колонтитула, вы можете использовать [] head[
] и [] tail[
], чтобы получить только нужную вам часть, [
echo query | impala-shell | tail -n +X | head -n -Y # -- in your case above -- echo "select * from abc where key > 'a-26052014015400' limit 1;" | impala-shell \ | tail -n +13 | head -n -3 # returns | a-26052014015700 | HS2 | 26052014015450 | 50 |] [
][]tail[][
] [-n, --lines=K output the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth] [
][] head[][
] [-n, --lines=[-]K print the first K lines instead of the first 10; with the leading '-', print all but the last K lines of each file]
У меня была та же ошибка, и я решил ее, установив пакет perl-cgi
$ sudo pacman -S perl-cgi
Nb, я отладил это, запустив сбойный скрипт напрямую, то есть
$ cd /usr/share/gitweb/
$ ./gitweb.cgi
Can't locate CGI.pm in @INC (you may need to install the CGI module)(@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./gitweb.cgi line 13.
BEGIN failed--compilation aborted at ./gitweb.cgi line 13.