ã¯ããã« ããæååã®ç½®æ㧠sed ã³ãã³ã使ãã®ç¦æ¢ãã¦è¯ãããããªãã§ãããï¼ è¨ãããã ã¨ããã£ã¦ããã¦è¨ã£ã¦ãã¾ããã æªãæ¸ãæ¹ï¼å¤é¨ã³ãã³ãã«é ¼ãæ¹æ³ï¼ # å¤æ° line ã«å ¥ã£ã¦ãæååã echo ã³ãã³ãã§åºåã㦠sed ã³ãã³ãã«æ¸¡ãã # sed ã® s ã³ãã³ã㧠"from" ã "to" ã«ç½®æãã¦åºåãããã®ã ret å¤æ°ã§åãåã ret=$(echo "$line" | sed "s/from/to/")
ã¡ãã£ã¨æ¬²ãããªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã How can I do a screen capture in Windows PowerShell? - Stack Overflow ã® Jacob Colvin ããã®åçãä¸çªç°¡æ½ã ã£ãã®ã§ãããå ã«ããã¤ãç¨æãã¦ã¿ã¾ããã ã¾ãã¯ãã«ãã¢ãã¿ã¼ãå«ããå ¨é åã # screenshot-all.ps1 # From https://stackoverflow.com/questions/2969321/how-can-i-do-a-screen-capture-in-windows-powershell Add-Type -AssemblyName System.Windows.Forms,System.Drawing $screens = [Windows.Forms.Screen]::AllScreens $top = ($scr
ãã«ãã¤ã³ã® echo ãç½®ãæãããã¨ã§åã·ã§ã«ã®éäºææ§ãåé¡ã解決ããã移æ¤æ§ã®ããï¼ãã¼ã¿ãã«ãªï¼echo ã·ã§ã«é¢æ°ãä½ãã¾ãããï¼ãªãã¸ããªPortable echoï¼ è§£èª¬ã¯å¾åã®æ¹ã§ãã¦ãã¾ãã ã¯ããã« echo ã¯ã·ã§ã«ã¹ã¯ãªããã«ããã¦ä¸çªåºæ¬ã¨ãªãã³ãã³ããªã®ã«ãªã移æ¤æ§ããªãã®ã§ãããï¼ ãã®è©±ã«ã¤ãã¦ã¯ä»¥ä¸ã詳ããã§ãã echo ã³ãã³ãã®éãã¨ç§»æ¤æ§ã®åé¡ - æ¡å¼µ POSIX ã·ã§ã«ã¹ã¯ãªãã Advent Calendar 2013 ã©ã®ç°å¢ã§ã使ããã·ã§ã«ã¹ã¯ãªãããæ¸ãããã®ã¡ã¢ ver4.60 ãã¦ãåããæ¬å½ã«æ¬²ããã£ããã®ãããã¯ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ã解éããã«æååããã®ã¾ã¾åºåããé¢æ°ã§ã¯ãªãã§ããããï¼ æåããã®ã¾ã¾åºåãããæã«ã©ããããï¼ ç°¡åãªçã㯠echo ã®ä»£ããã« printf ã使ç¨ãã¾ãã以ä¸ã¯ printf ã使ç¨ã
èæ¯ PowerShell ã§ã¹ã¯ãªãããæ¸ãã¡ãªããã®ä¸ã¤ã¨ãã¦ã¯ãWindows7 以éãªãããã©ã«ãã§å ¥ã£ã¦ããã®ã§ãWindows ã使ã£ã¦ãã人ã«ãªãæ¸ããã¹ã¯ãªããã渡ãã¦ããã®ã¾ã¾ä½¿ãããã¨ã«ããã¨æã£ã¦ãããï¼ããã .NET ã使ããï¼ ãã ããã©ã«ãã®è¨å®ã 㨠PowerShell ã®ã¹ã¯ãªãããå®è¡ã§ããªãã£ãããããã«ã¯ãªãã¯ã§å®è¡ã§ããªãã®ããã¡ãã£ã¨ä¸ä¾¿ã ãªã¨æããã®ã§ããã®åé¿æ¹æ³ãã¡ã¢ããã æ®éã«å¼æ°ã§æ¸¡ã ä¸çªåç´ãªæ¹æ³ã¯ãPowerShell ã®ã¹ã¯ãªãããå¼ã³åºãããããã¡ã¤ã«ãããã£ããã«ç½®ãã¦ãããã¨ã ã¨æãã ããã©ã«ãã 㨠ExecutionPolicy ã®å¤ã§ã¹ã¯ãªããã®å®è¡ãã§ããªãã®ã§ãªãã·ã§ã³ã§æå®ããã
Windows ã§ã¯ããªã¢ã¼ããããã¦ã³ãã¼ããããã¡ã¤ã«ã«ã "ZoneId" ã¨ããç©ãä»å ãããã ãã®ID ãä»å ããããã¡ã¤ã«ã¯ã exe ã¨ã㦠å®è¡ããéã«ã»ãã¥ãªãã£è¦åã表示ããããã .NET ã¢ã»ã³ã㪠dll ã¨ã㦠PowerShell ã«èªã¿è¾¼ãéã«ã Add-Type : ãã¡ã¤ã«ã¾ãã¯ã¢ã»ã³ã㪠'file:///*.dll'ãã¾ãã¯ãã®ä¾åé¢ä¿ã® 1 ã¤ãèªã¿è¾¼ãã¾ããã§ãããæä½ã¯ãµãã¼ãããã¾ããã (HRESULT ããã®ä¾å¤: 0x80131515) çºçå ´æ è¡:1 æå:1 + Add-Type -Path 'C:\*.dll' + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Type], FileLoadException + FullyQualified
AWSã§ãµã¼ããéç¨ããéã«ã¯EC2ããAWS CLIã使ã£ã¦ä»ã®AWSã®ãµã¼ãã¹ã¨é£æºããããããã¨ãããã¨æãã¾ãããAWSç°å¢ãªãã§ã¯ã®ã·ã§ã«ã¹ã¯ãªãããéãã¦ã¿ã¾ãããAWS CLIã®ãã¼ã¸ã§ã³ã¯1.7.13ãPythonã®ãã¼ã¸ã§ã³ã¯2.6.9ã使ã£ã¦ãã¾ããç§ã¯Amazon Linuxã§åä½ã確èªãã¦ãã¾ãã ç®æ¬¡ æºåãã AWS CLIã®ã¤ã³ã¹ãã¼ã« AWS CLIã®ã¢ãããã¼ã aws configureã§ã»ããã¢ãããã IAM roles for EC2 instancesã«é¢ã㦠ç£è¦ç³» CloudWatchã§ã«ã¹ã¿ã ã¡ããªã¯ã¹ãè¨å®ãã ZabbixããCloudWatchã®å¤ãåå¾ãã ããã»ã¹ç£è¦ãã ããã¯ã¢ããç³» AMIã¨EBSã®ããã¯ã¢ãããä½æãã RDSã®ã¹ãããã·ã§ãããä½æãã S3ã®ãã©ã«ããåé¤ãã 便å©ã¹ã¯ãªããç³» Route53ã®èªåç»é²
åæ¸ã Scalaã¨ããè¨èªããåç¥ã§ããï¼ Javaã¨åããã³ã³ãã¤ã«ãããã¨classãã¡ã¤ã«ã«ãªããå®è¡æã¯JVMä¸ã§åä½ããããªãã¸ã§ã¯ãæåï¼é¢æ°åã®ããã°ã©ãã³ã°è¨èªã§ãã Scalaãéçºããã®ã¯Javaã®genericsã®è¨è¨ãæãããããjavacã®éçºããã¦ããçµæ´ãæã¤Martin Oderskyæ°ã Scalaã¯å¾çºã®è¨èªã¨ãããã¨ããã£ã¦ãJavaãæ¸ãã¦ããæã«æããåé·ãã«å¯¾ããæ§ã ãªè§£ãç¨æããã¦ãã¾ãã æ¬è¨äºã§ã¯ãScalaã¨Javaã®ã³ã¼ããæ¯è¼ããªãããJavaã¦ã¼ã¶ãScalaã«ç§»ã£ãéã«å¾ãããã¡ãªãããæ示ãã¦ããã¾ãã å°ãåºç¤ã®ãµã³ãã«ã³ã¼ãã¯Javaã¦ã¼ã¶ã«ä¼ãããããããã«ãreturnãæè¨ããããã¡ã½ããã¯å¿ ã{ }ã§å²ããªã©ã極åJavaã£ã½ãè¨è¿°ããã¦ãã¾ãã ã ãããJavaã¨åããããªæ¸ãæ¹ãã§ãã¾ã Scalaã¯Javaã®
Change Window Buttons Nautilusã¹ã¯ãªããã¨ã¯ï¼ Change Window Buttonsã¨ã¯ãUbuntuã§ã¦ã£ã³ãã¦ãã¿ã³ã®é ç½®ãå·¦å³ã«å¤æ´ã§ããNautilusã¹ã¯ãªããã§ãã http://gnome-look.org/content/show.php/Change+Window+Buttons?content=123360 Ubuntu 9.10 - Change Window Buttons Nautilusã¹ã¯ãªãã ã¬ãã¥ã¼ãã¼ã¸ã§ã³ã¤ã³ã¹ãã¼ã«æ¹æ³ â» Nautilusã¹ã¯ãªããã¨ã¯ããã¡ã¤ã«ãã©ã¦ã¶ã®å³ã¯ãªãã¯ã¡ãã¥ã¼ã«æ©è½ã追å ããããã®ã¹ã¯ãªããã§ãã Change Window Buttonsã使ãã¨ãå³ã¯ãªãã¯ã¡ãã¥ã¼ããç°¡åã«ãã¦ã£ã³ãã¦ãã¿ã³ã®é ç½®ãå¤æ´ãããã¨ãã§ãã¾ãã Windowsã¦ã¼ã¶ã¼ã§ããã°å³å´ãMasOSã¦ã¼ã¶ã¼
ãµã¼ãå°æ°ãå¢ãã¦ããã¨ãä¾ãã°åã種é¡ã®ãµã¼ããã¹ã±ã¼ã«ã¢ã¦ããã¦ããã¨ãã1å°ã ãè¨å®ãã¹ããã£ãã¨ãã¦ããªããªãæ°ä»ãã¥ãããªãã¾ãããµã¼ãã¹ã®å®å®ç¨¼åã®ããã«ã¯ãããã£ãäºç´°ãªãã¹ã¯å®å ¨ã«æ½°ãã¦ããå¿ è¦ãããã¾ããããã§ä»åã¯ãµã¼ãéã®è¨å®ãã¡ã¤ã«å·®ç°ãæ¯è¼ããã¹ã¯ãªãããä½ãã¾ããã®ã§ãç´¹ä»ãã¦ã¿ã¾ãã ãåæºåã ã¾ãã¯ãã¡ãã§ãè¨ãããããªæ¹æ³ã§ããã¹ã¯ã¼ããªãã§åãµã¼ãã«SSHæ¥ç¶ã§ããããã«ãã¦ããã¦ãã ããã ããµã¼ãéã®è¨å®ãã¡ã¤ã«å·®ç°ãæ¯è¼ããã¹ã¯ãªããã ä¸è¨ã¹ã¯ãªãããã©ããã«ä¿åãã¦ãã ããããã¡ã¤ã«åã¯ä¾¿å®ä¸ãfilediff.shãã¨ã§ããã¦ããã¾ããããã¦ãä»åæ¯è¼ãããã¡ã¤ã«åãç¾ åãããã¤ãµã¼ãçªå·ï¼ä¸è¨ã®ä¾ã ã¨10.0.0.1ã®è¨å®ãã¡ã¤ã«ã10.0.0.2ï½10ã®è¨å®ãã¡ã¤ã«ã¨æ¯è¼ãã¦ãã¾ãï¼ãæ¸ãæãã¦ãã ããã $ cat > filedif
ã¾ããPerlã¯ã¹ã¯ãªããè¨èªãªãã ãã©ãWINDOWSã«ã¯ç¹ã«PerlScriptã¨ããè¨èªãããã¾ãã ãã®PerlScriptã¯ãWSHãè¨è¿°ããè¨èªã§ãVBScriptãJScriptã¨å å¼è¨èªã®ããã§ãã ActivePerlãã¤ã³ã¹ãã¼ã«ããã¨èªåçã«PerlScriptã使ããã¿ããã§ãã ã¾ããVBScriptã¨åãããã«WScriptãCScriptã®å¼æ°ã¨ãã¦å®è¡ããã¾ããã 以ä¸ã®åèãªã³ã¯ãå ã«ãµã³ãã«ï¼perlsample.wsfï¼ãä½ã£ã¦ã¿ã¾ããã ãã®ãµã³ãã«ã¯ãã¡ã¢å¸³ãèµ·åããããã«ã¿ã¤ãã©ã¤ã¿ã¼ã®ããã«ãHello from PerlScript!ããèªåå ¥åãã¾ãã <job id="WshShell"> <script language="PerlScript"> use strict; use warnings; our $WScript; my $
ä¸è¨ã®ã¹ã¯ãªãããããã¹ãã¨ãã£ã¿ãã¡ã¢å¸³ãªã©ã«ã³ãã 15è¡ç®ã(current.Name, "æ°ããåçåæ°ã®è¨å®", k)ãã®ãkããå¤æ´ãããåçåæ°ã«æ¸ãæããï¼åè§æ°åã§è¨å ¥ï¼ æ¡å¼µåãtxtããvbsã«å¤æ´ãã¦ãcountedit.vbsã¨ã§ãååãã¤ãã¦ä¿å ãã¨ã¯ããã«ã¯ãªãã¯ãã¦å®è¡ Dim iTunesApp Dim Tracks, numTracks Dim i, k Dim current set iTunesApp = WScript.CreateObject("iTunes.Application") set iShell = CreateObject("Wscript.Shell") iShell.AppActivate("iTunes") set Tracks = iTunesApp.SelectedTracks numTracks = Tracks.Co
æ¥é ãã楽天ã®ãµã¼ãã¹ããå©ç¨ããã ãã¾ãã¦ãããã¨ããããã¾ãã ãµã¼ãã¹ããå©ç¨ããã ãã¦ããã¾ãã¨ãã大å¤ç³ã訳ãããã¾ããããç¾å¨ãç·æ¥ã¡ã³ããã³ã¹ãè¡ããã¦ããã ãã¦ããã¾ãã ã客æ§ã«ã¯ãç·æ¥ã®ã¡ã³ããã³ã¹ã«ããããè¿·æãããããã¦ãããèª ã«ç³ã訳ãããã¾ããã ã¡ã³ããã³ã¹ãçµäºæ¬¡ç¬¬ããµã¼ãã¹ã復æ§ãããã¾ãã®ã§ã ä»ãã°ãããå¾ ã¡ããã ãã¾ãããããé¡ãç³ãä¸ãã¾ãã
ã»history.VBS http://www.vector.co.jp/soft/win95/net/se354044.html ããã¯é¢ç½ãã ãå±¥æ´ã(History)ãHTMLãã¡ã¤ã«ã«å¤æããã½ããã ç§ã¯ãã¤ãç§å¯ä¿æãè² è·è»½æ¸ã®ããã«ãWebã®å±¥æ´ãå®æçã«æ¶ãã¦ãããéè¦ãªãã¼ã¸ã¯ãæ°ã«å ¥ãã«å ¥ãã¦ãããããæ¶ãã¦ã大ä¸å¤«ãªã¯ããã ãããã ããæ¶ãã¦ãã¾ã£ãå¾ã«ã¡ãã£ã¨å¾æãããã¨ãããããæ°ã«å ¥ãã«ç»é²ãããã¼ã¸ãè¦ã¤ããã¾ã§ã«ãã»ãã«ã©ããªãã¼ã¸ãè¦ã¦ããããçµè·¯ãä¿åãã¦ããããã¨ããã¨ãã§ãããä¼¼ããããªèª¿ã¹ç©ãããã¨ãã«ãä½ãã©ãã¾ã§èª¿ã¹ããã®Webå±¥æ´æ å ±ã¯ãè¦è¿ãã¦ã¨ã¦ãåèã«ãªãããã ã ãã®VBã¹ã¯ãªããã§ã§ããã½ããã¦ã§ã¢ã¯èµ·åããã¨ãç¾å¨æ®ããã¦ããMSIEã®å±¥æ´ããã¹ã¦æçµã¢ã¯ã»ã¹æå»é ã§ã½ã¼ããã¦ãHTMLã¨ãã¦ä¿åãã¦ããããããããã®ãã¼ã¸ã®ã¢
Microsoft Corporationã¯14æ¥ï¼ç¾å°æéï¼ããã³ãã³ãããã³ãããã«ä»£ããã·ã¹ãã 管çè åãã®æ°ããã³ãã³ãã©ã¤ã³ã·ã§ã«ç°å¢ãWindows PowerShellãv1.0ãå ¬éãããWindows XP/2003/XP x64/Server 2003 x64/Server 2003 IA64ã«å¯¾å¿ããããªã¼ã½ããã§ãç¾å¨å社ã®ãã¦ã³ãã¼ãã»ã³ã¿ã¼ããæ¥æ¬èªçããã¦ã³ãã¼ãã§ãããåä½ã«ã¯.NET Framework 2.0ãå¿ è¦ã ãWindows PowerShellãã¯ãâMonadâã®ã³ã¼ããã¼ã ã§éçºãé²ãããã¦ããã³ãã³ãã©ã¤ã³ã·ã§ã«ç°å¢ããã¡ã¤ã«ã¸ã®ã¢ã¯ã»ã¹ã¨åæ§ã®æä½ã§ã¬ã¸ã¹ããªãªã©ã®ã·ã¹ãã ãã¼ã¿ãæ±ããã»ãã.NET Frameworkã®ãªãã¸ã§ã¯ããã³ãã³ãã©ã¤ã³ä¸ããæä½ã§ãããªã©ãã·ã¹ãã 管çè ãããã°ã©ã éçºè åãã®æ©è½ãå å®ãã¦ããã®ãç¹é·
cmd.exeã«æ¿ããæ°ããã¹ã¯ãªããã£ã³ã°ã·ã§ã«ãWindows PowerShellãï¼ã³ã¼ããã¼ã ã¯Monadï¼ãæ£å¼ã«çºè¡¨ãããã ç±³Microsoftã¯ãã¹ãã¤ã³ã®ãã«ã»ããã§éå¬ã®IT Forumåæ¥ã¨ãªã11æ14æ¥ãæ°ããã³ãã³ãã©ã¤ã³ã·ã§ã«ããã³ã¹ã¯ãªããã£ã³ã°è¨èªãWindows PowerShell 1.0ãã®ãªãªã¼ã¹ãçºè¡¨ããã Microsoftã§ã¯PowerShellãããã³ãã³ãããã³ããï¼cmd.exeï¼ã¨VBScriptãçµ±åãããããªãã¼ã«ãã¨èª¬æãã¦ãããWindowsã·ã¹ãã ã¨ãã®ä¸ã§åä½ããExchange Server 2007ãªã©ã®è£½åã®ç®¡çæ§ãé«ããç®çã§éçºããããã¼ã«ã§ãã·ã¹ãã 管çã¿ã¹ã¯ã®èªååã«ä½¿ãããã PowerShell 1.0ã¯ç¾å¨ãWindows XPã¨Windows Server 2003ã«å¯¾å¿ãã¦ãããWindows V
@IT ã®è¨äºããã£ã¨èªã¿ã¾ããããé¢ç½ãã§ããããã.NET ã®ã¯ã©ã¹ã©ã¤ãã©ãªã¨ç´çµãã¦ãããã¨ã¨ããªãã¸ã§ã¯ããæ±ãããã¨ãã³ãã³ãã¬ãã+ã¨ã¤ãªã¢ã¹ã¨ããä»çµã¿ã¯å¼·åããã ã.NET ãä¸å¿ã«æ®ãããã¨ã®ãã¾ã¿ãçãã¦ãã¦ããããã«æãã¾ãã UNIX ã ã¨ãåæ§ã®ãã¨ã¯ããã¹ããã¼ã¹ã§ã³ãã³ã+sh ã¹ã¯ãªããã¨ãããã¨ã«ãªãã¾ãããããããå æ¸æ¨æº sh ç¨ã·ã§ã«ã¹ã¯ãªãããæ¸ãããã¨ã¯æããªãã¨ããããã¹ãã®ãã¼ãºã§æããããã¬ãã°ã«ç´é¢ãããã¨ããã¨ã¦ã21ä¸ç´ã®ç°å¢ã¨ã¯æããªãã ä¸æ¹ã§ãä¾ãã°å¸¸ã« irb (Ruby ã®å¯¾è©±ã·ã§ã«ã¿ãããªã®) ã®ä¸ã§çãã¦ãããã¨ãããããªææ³ãããããããã¾ãããirb ã®ã³ãã³ãããã³ãããæ®éã®ã·ã§ã«ã®ããã«ãã¦ãä¸éãã®ã³ãã³ããç¨æããã°ãå¤åçæ´»ã«å åãªã·ã§ã«ç°å¢ãä½ããããã¹ã¯ãªãããæ¸ãä¸ã§ã¯ sh ããã¯ããã«åªããè¨
ä»é±ã«å ¥ã£ã¦ãããã¾ãã¾ãªçºè¡¨ãè¡ã£ã¦ããMicrosoftãã次æãWindows Serverãã«é¢ããä»å¾ã®å±éãæããã«ããæ°ããã¹ã¯ãªããã£ã³ã°ã¨ã³ã¸ã³ãWindows PowerShellããæ£å¼ã«ãªãªã¼ã¹ããã Microsoftã®ãµã¼ãããã³ãã¼ã«é¨éæ å½ãã¤ã¹ãã¬ã¸ãã³ãBob Mugliaæ°ã¯ãç¾å°æé11æ14æ¥ã«å社ããã«ã»ããã§éå¬ãããTechEd IT Forumãã«åºå¸ãã7500åã«ä¸ãè´è¡ãåã«ä»åã®çºè¡¨ãè¡ã£ãã çºè¡¨ã®ä¸å¿ã¨ãªã£ãã®ã¯ãMicrosoftã®æ°ããªã³ãã³ãã©ã¤ã³ã·ã§ã«ããã³ã¹ã¯ãªããã£ã³ã°ãã¼ã«ã§ãIT管çè ãèªç¤¾ã®Windowsã·ã¹ãã ãéç¨ããããã«å©ç¨ãããWindows PowerShell 1.0ãã ãå社ã«ããã°ãITå°é家ã¯PowerShellãç¨ãããã¨ã§ããçç£æ§ãå¤§å¹ ã«åä¸ãããã·ã¹ãã ã®ç®¡çæ§ãé«ãã¦ãèªååãä¿é²
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}