You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
From the very useful tools department: today I stumbled on jq, via Jeroen Janssen's 7 command-line tools for data science blog post. As the tagline says, jq is like sed, grep and awk for json: a command-line filter that lets you format, select and output JSON data. As an example, here's how you can list all the OSGi bundles from your Sling instance together with their state. The raw bundles.json i
ã¿ã¼ããã«ä¸ã§ç°¡åã«ã°ã©ããæãããã«termeterã¨ãããã¼ã«ãä½æãã¦ã¿ã¾ããã Getting Started termeterã¯é常ã®ã³ãã³ãã©ã¤ã³ãã¼ã«ã¨ãã¦ä½¿ç¨ãããã¨ãã§ãã¾ããã¿ãåºåããã«ã³ãåºåãã®ãã¼ã¿ãæ¨æºå ¥åããã¡ã¤ã«ã§ãããããã¨ã§ã°ã©ããæãäºãã§ãã¾ãã ä¾ã¨ãã¦ä»¥ä¸ã®ãããªä¸è§é¢æ°ã®ã¿ãåºåãã®ãã¼ã¿ãèãã¾ãã $ seq 100 | awk 'BEGIN{OFS="\t"; print "x","sin(x)","cos(x)"}{x=$1/10; print x,sin(x),cos(x)}' | head x sin(x) cos(x) 0.1 0.0998334 0.995004 0.2 0.198669 0.980067 0.3 0.29552 0.955336 0.4 0.389418 0.921061 0.5 0.479426 0.877
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
ã¯ããã« æ¬ç¨¿ã¯AWKã¨ããè¨èªãç¨ãã¦ã ããç°¡åã«ãã¼ã¿åæç¨ã®åå¦ç*1ãããããã®è§£èª¬è¨äºã§ãã AWKã¯çãã³ãã³ããè¨è¿°ããã ãã§å¤æ§ãªãã¼ã¿å¦çãå¯è½ã«ãã¾ãã ç¹ã«ãã¼ã¿ã®æ½åºã«é¢ãã¦æãã¹ãç°¡æããæä¾ãã¾ãã å ·ä½çã«ã¯ãinput.txtã¨ãããã¡ã¤ã«ã®ä¸ãã "fail"ã¨ããæååãå«ãè¡ãæ½åºããããã°æ¬¡ã®ããã«æ¸ãã ãã§ãã awk /fail/ input.txt ã¤ã¾ããã¹ã©ãã·ã¥è¨å·ã§æååãæå®ããã ã㧠ãã®æååãå«ãè¡ãæ½åºã§ããã®ã§ãã 大å¤ç°¡åã§ããï¼ ã¾ããawkã¯LinuxãMacã«ã¯æ¨æºã§å ¥ã£ã¦ããã Windowsã§ãawk.exeãä¸ã¤ç¨æããã ããªã®ã§ã é¢åãªã¤ã³ã¹ãã¼ã«ä½æ¥ãç°å¢æ§ç¯ã¯ä¸è¦ã§èª°ã§ãå³åº§ã«ä½¿ããããã èªåã§æ¸ããå¦çãä»äººã«æ¸¡ããã*2åãµã¼ãã«ä»è¾¼ããªã©ãç°¡åã«åºæ¥ã¾ãã è¤éãªå¦çãããå ´åã¯Pythonã
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
OSC2011 Tokyo/Fallã§ãæ¥æ¬gnu awkã¦ã¼ã¶ã¼ä¼ã®æè¤ããã¨è¡ã£ããã¬ã¼ã³ãã¼ã·ã§ã³ã§ããawkã¨bashã®é¦´ãåãããã¨ããå ±åå ±æ ããã¼ãã§ããRead less
ãªããã2/6 ã®å¤ã«ã修士è«æã®ä»£ããã«éå¦é¡ãæåºãã¦ãããã Twitter ã§ã°ãã£ãããããYahoo ç ²ããããçªå¦ã¨ãã¦ã¢ã¯ã»ã¹ãéä¸ãã¾ãããä¸ã®æ¹ã«ãªã½ã¼ã¹ã¢ãã¿ãªã³ã°ã®ã°ã©ããè²¼ãã¤ãã¦ã¾ãããä»ã¾ã§ãã»ã¼ 0 ã«è¦ãã¦ãã¾ããããã«æ¥ã¦ãã®ã§ã³ã£ããã§ããã ã¾ãè²ã ã³ã¡ã³ãã¤ãã¦é ããããã¦ã¾ããããã2 å¹´ãåãªãã§ãã®ã¨ã³ããªã«ã¤ãã¦ä»æ´åããçªã£è¾¼ããã¨ã¯ç¡ãã¦ããã®ã¨ã³ããªã¯ãã®ã¨ã³ããªã¨ãã¦è¦ã¦é ããã°ã¨æãã¾ããããã§ã¯ä»åãããªçªç¶ã®ã¢ã¯ã»ã¹éä¸ã«ãè¦äºèãã¦ãããããã VPS ã«æè¬ãã¤ã¤ãã¢ã¯ã»ã¹éä¸ã®ç¶æ³ãé¯ç®¡çç«å ´ããåæãã¦ã¿ã¾ãããã ã¡ãªã¿ã«ã以åã¨ã³ããªã«æ¸ãã¦ãã¾ãããµã¼ãã®æ§æã¨ãã¦ã¯ããã VPS1 å°ã§ãCentOS+Apache+mod_fastcgi+PHP-FPM+MySQL5.5(InnoDB)㧠WordPress
rubyã§awkã®ãããªä¸è¡ééãä½ãã rubyã¯awkã®ããã«ãã¡ã¤ã«ãä¸è¡ã㤠èªã¿è¾¼ãå¦çãå¯è½ã§ããã èµ·åãªãã·ã§ã³ãå¤ãããã¨ã§ã ç°¡åã«å®ç¾ã§ããã ãã¨ãã°ã a,b,c e,f,g h,i,j ã®ãããªãã¡ã¤ã«ãããå ´åã ruby -F, -anã'puts $F[1]'ããã¡ã¤ã«å ã¨ãã㨠b f i ç¶æ³ã¨ãã¦ã¯ ã¾ã-aãªãã·ã§ã³ã§ ä¸è¡ãã¤èªã¿åãã¢ã¼ãããªã³ã«ããã ãã®å¾-nãªãã·ã§ã³ã§ä¸è¡ãã¤$Fã«å ¥ããã ãã®ã¨ãèªåçã«-Fãªãã·ã§ã³ã§æå®ãã åºåã","ã§åå²ãããã ï¼ä¸è¡ééã®ãã¨ã¯æè¿ã¯ã¯ã³ã©ã¤ãã¼ ã¨ããããããï¼ åèãã¼ã¸ï¼ http://blog.lilyx.net/2007/11/29/writing-one-liner-in-ruby/ http://d.hatena.ne.jp/keita_yamaguchi/2008083
ãã®ææ¸ã¯æ¸ãããã§ã ããã§ã¯ nawk (new awk) ã§ä½¿ç¨å¯è½ãªå½ä»¤ã§è¨è¿°ãã¦ãã¾ãã gawk (GNU awk) ã使ããã¨ã§ãããã«å¹çããè¨è¿°ãè¡ããã¨ãã§ãã¾ãããnawk ã®ææ³ã§è¦ãã¦ããã¨å ¨ã¦ã® awk ã§ä½¿ããã¨ãã§ãã¾ãã print æ 表示㯠print æã§ãã print "Hello World!"; ã³ã¡ã³ã # 以éãã³ã¡ã³ãã«ãªãã¾ãã ã¹ã¯ãªããã®å®è¡ 以ä¸ã®ããã« '-f' ã«ç¶ãã¦ã¹ã¯ãªãããæå®ãã¾ãã nawk -f foo.awk è¤æ°ã® awk ã¹ã¯ãªãããæå®ãããã¨ãã§ãã¾ãã nawk -f foo1.awk -f foo2.awk -f foo3.awk ã¹ã¯ãªãããç´æ¥æå®ã§ãã¾ãã # "Hello World" ã¨è¡¨ç¤º nawk 'BEGIN { print "Hello World" }' BEGIN, END,
æã¨éã£ã¦ä»ã¯{PostNotes}ããã¼ãã«å ¥ã£ã¦ããããwgetã§ãã¼ã¸ã¶ã£ãæãã¦ãã¦awkãperlã§ã¡ããã£ã¨æ´å½¢ãã¦graphvizã«çªã£è¾¼ãã ãã§ããããç»åãç°¡åã«ã zsh % export target="http://shyouhei.tumblr.com/post/339223403/tumblr-tumblr"; \ zsh -c 'wget -O - $target | tidy -i -w 0 -utf8 | ruby -n <(cat) | neato -Tpng -o tmp.png' <<'EOF' BEGIN { require 'open-uri' require 'thread' $h = Hash.new $q = Queue.new $th = Thread.start { loop { url = $q.deq $th.exit unless
ã¿ã¤ãã«ã®ã¾ãã¾ã®ããããªãã¢ãç´¹ä»ãããã¨æããmysqlã®--one-databaseãªãã·ã§ã³ã使ãã°ãmysqldumpã§--all-databasesã¨ã--databasesãªãã·ã§ã³ã使ã£ã¦ä½æãããã³ããã¡ã¤ã«ã«å«ã¾ããè¤æ°ã®ãã¼ã¿ãã¼ã¹ãããä¸ã¤ã®ãã¼ã¿ãã¼ã¹ã ããé¸æãã¦ãªã¹ãã¢ãããã¨ããæä½ãã§ãããã©ãæ¯åãã³ããã¡ã¤ã«å ¨ä½ãèªã¿è¾¼ãã®ã¯ç¡é§ãããªããï¼ã¨æããããã¨ãããã ãããã ã£ããäºåã«ãã³ããã¡ã¤ã«ãåãã¡ããããï¼ã¨èããã®ã人æ ã¨ãããã®ããããªã¨ãã¯awkã³ãã³ãã使ãã¨ããã #!/usr/bin/awk -f BEGIN { dump_current_db = 0; num_db = split(databases, db_arr, ",") for (i = 1; i <= num_db; i++) { db_arr[i] = "`" db_
ã¯ããã¾ãã¦ãã¤ã³ãã©ãã¼ã ã®è åã¨ããã¾ãã ä»å¹´ã®7æã«å ¥ç¤¾ãã¦ãããã³ã³ã½ã¼ã«ã¨ã«ããã£ãããæ¯æ¥ãéããã¦ãã¾ããã¯ãã¯ãããã®ããã«ã¢ã¯ã»ã¹ã®å¤ããµã¤ãã®ãµã¼ããæ±ããã¨ãä»ã¾ã§ç¡ãã£ãã®ã§ãããããã¨åå¼·ã«ãªããã¨ãå¤ãã§ãã ãã¦ãã¤ã³ãã©ãã¼ã ã§ã¯ãµã¼ãã®ç¶æ³ãã¢ãã¿ãªã³ã°ãã¦ããµã¼ãã«åé¡ããªããã常ã«ææ¡ããããã«ãã¦ãã¾ãããã®ããæ¥å¸¸çã«tailã§ãã°ã追ãããã¦ããã®ã§ããããããªã¨ãã¯AWKãé常ã«ä¾¿å©ãªãã¨ã«æ°ä»ããæè¿ã¯ããªãAWKã«ããã£ã¦ãã¾ãã ä»åã¯çµ¶è³ãã¤ãã¼ã ä¸ã®AWKã®æ´»ç¨ä¾ããç´¹ä»ãããã¨æãã¾ãã ãªãAWKãªã®ãï¼ æ®å¿µãªããAWKã®ç¥å度ã¯ãã¾ãé«ããªãããã§ã社å ã§ãããªãRubyã§ãããªãã®ãï¼ãã¨èããããã¨ãããã¾ãããåãå ¥ç¤¾ããã¾ã§ã¯cutã®ä»£ãããããã«ãã使ã£ã¦ããªãã£ãã®ã§ãããããã¨ããã°åºåã®æ´å½¢ã«ä½¿ã£ã¦ä»¥æ¥ãAW
èªåãããã¨æãã人é¡ã®è¡ãã¤ãå ã®ã¤ã¡ã¼ã¸ã¨ãã¦ãä»ã¾ã§ã¯ãã¨ã³ããè²·ãåºãç´è¡ãã®ä¸ç観ãè¿ãã¨æã£ã¦ããã®ã ããhttp://blog.tatsuru.com/2009/05/30_0949.phpã§ç¤ºããã¦ãããä¸ãããã®ã¤ã¡ã¼ã¸ã®æ¹ãè¿ãã 人å£æ¸å°ï¼ã¨ããããé©æ£åï¼ã¨çµæ¸æ´»åã®ç¸®å°ãæç¶å¯è½ãªè³æºå©ç¨ã¨ããæµãããä¸ãããã¨ãã¦ã¯ãããã¨ãããæè¨ã§ããã ç§ã¯ããã§ï¼ï¼ä¸ç´æ¥æ¬ã®ããã¹ãéã¨ãã¦ããéå½æ夷è«ããå ·ç³ããã ã¨ã³ããè²·ãåºãç´è¡ 1 (ã¢ãã¿ãã¼ã³KC) ä½è : è¦å¥éã²ã¨ãåºç社/ã¡ã¼ã«ã¼: è¬è«ç¤¾çºå£²æ¥: 1995/08ã¡ãã£ã¢: ã³ããã¯è³¼å ¥: 2人 ã¯ãªãã¯: 113åãã®ååãå«ãããã° (96件) ãè¦ã ãã«ã¼ããªã¼ã§æ¤ç´¢ããã¨ãã«ãããçæ´»è¶ããã®ãä»æã®ç®æ¨ã§ãã ãããªè¨äºãè¦ããã¦æã£ããã¨http://gihyo.jp/dev/col
å°æ æ ä¿® é沢大å¦çå¦é¨è¨ç®ç§å¦ç§ 2001å¹´1æ8æ¥(æ): 第1ç 2002å¹´10æ10æ¥(æ¨):第1.1ç ogurisu[AT]kanazawa-u.ac.jp ãã®ææ¸ã®ç®æ¨ã¯ AWKã使ã£ããã¨ããªã人ã使ãå§ãããã£ããã«ãªãã° ã¨ããã¨ããã«ããã¾ãã Cã Javaãããæ°æ¥½ã«ããã°ã©ãã³ã°ã楽ã ãã¦ããã¡ããå®ç¨çãªããã°ã©ã ãæ¸ããã®ã AWKãperl, rubyã«ä»£è¡¨ã ããã¹ã¯ãªããè¨èªã§ãããã§ã«webä¸ã«ã AWKã®ææ¸ãæ¥æ¬èªã®ãã®ãå« ãã¦ããããããã¾ããæ¬æ ¼çãªããã¥ã¢ã«å½¢æ ã®ææ¸ãã A4ã«å° å·ãã¦æ°æç¨åº¦ã®ãã®ãããã¾ããããã¡ãã£ã¨ä½¿ã£ã¦ã¿ããã¨ããã«ã¯æ¬æ ¼ çãªææ¸ã¯ããã©ããã A4æ°æç¨åº¦ã®ãã®ã¯ç°¡æ½ããã¦ä½ãã§ãã ã®ãããããããªãã¨æãã¾ãããããè£å®ã§ããã°ãªã¨æã£ã¦ãã¾ããããã ãã®ææ¸ä»¥ä¸ã®ãã¨ãããããªã£ããããã£ã¨
YAPC::Asia 2008 㧠Michael Schwern ã¯ãSEO ã«æå¹ãªç¬èªãã¡ã¤ã³ãåã£ã¦ããã£ã¨ Perl åå¿è ãéã¾ãããã nice 㪠Perl ã®æ å ±ãéãããµã¤ããä½ã!ãã¨è¨ã£ã¦ããã®ã§ãããã« AWK-users.jp ãéå§ãã¾ãã Perl Is unDead - Michael Schwern (Schwern) ãã㯠awk ãåãã§ãããã¡ããã© Perl-users.jp ã®çºè¡¨ã®ããåæ¥ã« Web ãµã¤ãã®åæ§ç¯ã®è©±é¡ã ML ã«åºããã¨ããã§ããã å¾®å¦ãªã¿ã¤ãã³ã°ã ãªãã«æ¸ãã¾ããããPerl Is unDead - Michael Schwern (Schwern) ã®ä¸ã®è©±ãç§ãªãã« awk ã§ãéç¨ããããã«ã¾ã¨ããã¨ä»¥ä¸ã®ããã«ãªãã¨æãã¾ãã(èãåãã¦ããªãããããã¾ãããã»ã»ã») ããããã¾ã³ããè³ã¿ãã欲ãããããã«ã
Getting started with awk This qref is written for a semi-knowledgable UNIX user who has just come up against a problem and has been advised to use awk to solve it. Perhaps one of the examples can be quickly modified for immediate use. Pre-Info Ohhh ohh what flavor? For More Info References Introduction The Basics Some Samples Whats a pattern, whats an action? With a regular expression? Comparisons
ç§ã Ruby ã使ãæ©ä¼ã¯ãã£ã±ã Win32OLE ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ Excel ããã¯ãå®åå¦çãããããªå ´åãå¤ããªã£ã¦ãã¾ãã 以åã¯ããããç¨éã« Perl ã使ã£ã¦ããã®ã§ããããã使ããï½ã®æ¡ä»¶ãæºãããã¹ã¦ã®ã·ã¼ãã«å¯¾ãã¦ï½ãã¨ãããããªå¦çã¯ãããã¯ã使ã£ãæ§æãæ¸ããããããã§ãã ãããæ§æããããæ¸ããããã¦ãçµå±ãã¤ãä¼¼ããããªã³ã¼ããæ¸ãã¦ããã®ã«æ°ã¥ãã¾ããExcel ãã¼ã¿ã«å®åçãªå¦çãè¡ãå ´åã«æ¸ãã³ã¼ãã¨ããã®ã¯å¤§æµä»¥ä¸ã®ãããªãã®ã§ãã 1. å¼æ°ã§ä¸ãããããã¹ã¦ã®ããã¯ã«å¯¾ãã¦ã 2. ä¸ã«å ¥ã£ã¦ãããã¹ã¦ã®ã·ã¼ãã«ã¤ãã¦ï¼ä½ãã®æ¡ä»¶ä»ãã§ãã£ã«ã¿ãã¦ï¼ã 3. ã·ã¼ãä¸ã®æå¾ã®è¡ã¾ã§ãï¼ãã¯ãä½ãã®æ¡ä»¶ä»ãã§ãã£ã«ã¿ãã¦ããã¼ã¿ãå¤æãããããªããï¼èµ°æ»ããã ããããå¦çã¨ããã®ã¯å®ã¯è¦ããã« awk ã§ãã£ã¦ãExcel ã«å¯¾ãã aw
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}