Skip to Main Content
Scripting mit Windows PowerShell 2.0 - Der Einsteiger-Workshop
book

Scripting mit Windows PowerShell 2.0 - Der Einsteiger-Workshop

by Tobias Weltner Dr.
June 2012
Intermediate to advanced content levelIntermediate to advanced
720 pages
21h 46m
German
Microsoft Press Deutschland
Content preview from Scripting mit Windows PowerShell 2.0 - Der Einsteiger-Workshop

Textmuster und reguläre Ausdrücke

Textmuster können recht beschaulich sein. Möchten Sie wissen, ob ein Text ein bestimmtes Stichwort enthält, greifen Sie zum Operator -like. Damit kann man Texte also auf relativ simple Art validieren und den Inhalt von Textdateien filtern:

PS> 'Das Kennwort lautet: streng geheim' -like '*Kennwort*' True PS> Get-Content $env:windir\windowsupdate.log | Where-Object { $_ -like '*Warning:*' } 2010-02-15 09:00:07:346 676 16cc DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/software/ftpk/2009/09/ 3127922_efd1b6e88dca0406420a85f24eb9497135f89f0a.cab for file 79G26I3KBAZCCoXyTrlJcTX4nwo= when file has not been previously added to the datastore 2010-02-15 11:47:01:166 676 f58 PT ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scripting mit Windows PowerShell 3.0 - Der Workshop

Scripting mit Windows PowerShell 3.0 - Der Workshop

Dr. Tobias Weltner
Windows PowerShell 3.0 kurz & gut

Windows PowerShell 3.0 kurz & gut

Lee Holmes, Rolf Masuch

Publisher Resources

ISBN: 9783866456693Purchase book