#author("2018-10-11T02:34:24+00:00","default:admin","admin")
#author("2018-11-19T02:41:31+00:00","default:admin","admin")
こんなの作らないで、unixのコマンドを普通に使えるようにしてくれりゃいいのに...

-[[powershell チートシート:https://qiita.com/jca02266/items/a0c71ae90d055ab3893c]]

-[[Windows PowerShell でのスクリプティング:http://www.microsoft.com/japan/technet/scriptcenter/hubs/msh.mspx]]
-[[Windowsスクリプティング環境比較:PowerShell vs WSH:http://www.atmarkit.co.jp/fwin2k/operation/pshvswsh/pshvswsh_01.html]]
-[[Windows PowerShell徹底解説:http://itpro.nikkeibp.co.jp/article/COLUMN/20061106/252598/]]

-[[それ PowerShell でできるよ:https://qiita.com/cd01/items/da9a36582372e7d0a7f6]]
-[[PowerShell 使い方メモ:http://qiita.com/opengl-8080/items/bb0f5e4f1c7ce045cc57]]

-[[なぜPowerShellが危険なのか? 増え続ける悪用の現状:http://www.itmedia.co.jp/enterprise/articles/1702/08/news018.html]]
-[[MicrosoftがPowerShellをオープンソース化しLinuxやOS Xにも提供…Bash on Windowsとの差別化は?:http://jp.techcrunch.com/2016/08/19/20160818microsoft-open-sources-powershell-brings-it-to-linux-and-os-x/]]

-[[ナンバーズ予想で学ぶ PowerShell によるデータ分析:https://qiita.com/mwmsnn/items/0e3e5cc1980272858ad8]]

-[[PowerShellでファイルにリダイレクトしたときに勝手に改行される場合の対処:https://qiita.com/gimKondo/items/20e1a5a1b2898c5c5fbd]]

*Tips [#h5b822ef]
**tail [#f090da93]
 > Get-Content C:\var\log\nlog-own-2017-11-27.log -wait -tail 10 -Encoding UTF8

**touch [#g0a801f1]
-作成日時
 > Set-ItemProperty .\test.txt -Name CreationTime -Value "2018/06/12 15:30:00"
-更新日時
 > Set-ItemProperty .\test.txt -Name LastWriteTime -Value "2018/06/12 15:30:00"

**grep [#m20ce9b6]
-[[grepコマンドとPowerShellのsls (Select-String)の比較:http://tech.sanwasystem.com/entry/2016/07/05/185717#%E7%B5%90%E6%9E%9C%E3%81%A0%E3%81%91%E3%82%92%E7%94%BB%E9%9D%A2%E3%81%AB%E5%87%BA%E5%8A%9B%E3%81%97%E3%81%9F%E3%81%84]]
-[[grepコマンドとPowerShellのsls (Select-String)の比較:http://tech.sanwasystem.com/entry/2016/07/05/185717]]
-[[Windowsでgrep:http://d.hatena.ne.jp/ys4145/20110408/p1]]
-[[powershellでCSV等の区切り文字があるファイルの数値列の合計を計算する:https://qiita.com/gyoon/items/a74fe70959e51d584951]]

-「ファイル名:行番号」を出力しない
 Get-Content [ファイル] | select-string [検索文字列]
 select-string [検索文字列] | select Line

**wc -l [#se7047d4]
 (Get-Content [ファイル] | Measure-Object).Count


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS