例えば、Get-Location で取得したファイル一覧の中から特定の名前のファイルを探したければ、 以下のようにします。 > ls C:\Windows | %{$_.Name} | ?{$_ -eq "web"} Web > ls C:\Windows | %{$_.Name} | ?{$_ -like "we*"} Web > ls C:\Windows | %{$_.Name} | ?{$_ -match "^we.*"} Web 置換は、 「対象の文字列 -replace 置換したい部分, 置換後の文字列」 という書式で行います。 (3項演算に見えなくもないですが、 -replace の右オペランドが配列なだけ。) > $a = "Windows の新しいコマンドライン シェルです。" > $a -replace "です。", "なのですよ。" Windows の新しいコマンドラ
PowerShellの基本(前編):Windows PowerShellコマンド&スクリプティング入門(1/5 ページ) 対話型シェルとスクリプティング実行環境とを完全に統合した、次世代Windowsシェル、PowerShellを管理者として活用するための第一歩。 連載目次 Windowsというプラットフォームの第一の特徴は、何をおいても、その充実したGUIだろう。グラフィカルなユーザー・インターフェイスを介することで、ユーザーは複雑なコマンドなどを習得することなく、直感的にツールを利用することができる。比較的知識の浅いシステム管理者でも、それなりにWindows OSを管理できてしまうのは、まさにこのこなれたGUIの存在ゆえであるといってもよいだろう。 もっとも、GUI環境がもたらすのはメリットばかりではない。というのも、日常的に行われるルーチンワークを行うに際しては、往々にして煩雑な作
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く