Posts

Showing posts from December 14, 2018

Shellscript `grep` execution not working as in the interactive shell

Image
up vote 0 down vote favorite Having to deal with an environment where ack and so on is not available nor installable, this command try to limit only relevant files to find string through the C++ project : grep pattern --color -- /project/path/**/*.*([chCH]|cc|cxx|[ch]pp|py) This does the job. Now to bring a bit more commodity to that, the goal is to put that into a shell script. Let's say it's named wrapped_grep . Here is the content of wrapped_grep : #!/usr/bin/env bash shopt -s extglob # enable advanced pattern matching grep $1 --color -- /project/path/**/*.*([chCH]|cc|cxx|[ch]pp|py) But trying to launch wrapped_grep pattern don't provide any output, even when the equivalent direct grep query does find matches as expected. What is missing in this script to provide the same result as the direct grep in

アッシリア

Image
この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。 出典を追加して記事の信頼性向上にご協力ください。 ( 2013年1月 ) この項目では、メソポタミア北部の地域、また、そこに興った世界帝国であるアッシリア帝国について説明しています。アッシリア帝国の末裔を自称し、現代アラム語を話すネストリウス派のキリスト教徒については「アッシリア人」をご覧ください。 アッシリアに関連した都市と国の位置関係 ハニガルバトとは、『ミタンニ』に対するアッシリア側からの他称である。 アッシリアの世界帝国。強力な軍事力と過酷な統治体制でアッシリアは最初の「世界帝国」を樹立した。画像は都ニネヴェの北宮殿を飾っていたアッシリア王アッシュールバニパル(在位:紀元前668年 - 紀元前627年頃)の浮き彫り(ロンドンの大英博物館蔵)。 イラク の歴史 この記事は シリーズ の一部です。 先史 古代 メソポタミア   シュメール   ウバイド文化 5300 BC ウルク文化 4000 BC ウル   ウルク   ラガシュ   アッカド帝国 c.2334 BC-c.2050 BC ウル第三王朝 22C BC-2004 BC イシン・ラルサ時代 c.2004 BC-c.1750 BC バビロニア 1894 BC-625 BC  • バビロン第1王朝 1894 BC-1595 BC  • 海の国第1王朝 c.1732 BC-c.1475 BC  • カッシート王朝 c.1475 BC-1155 BC  • イシン第2王朝 c.1157 BC-1025 BC ヒッタイト 1595 BC-c.1200 BC ミタンニ c.1500 BC-1330 BC アッシリア 1365 BC-625 BC 新バビロニア 625 BC-539 BC アケメネス朝 539 BC-330 BC アレクサンドロス大王 330 BC-323 BC セレウコス朝 312 BC-2C BC パル