skip to main
|
skip to sidebar
Hack and Flail
A story about my adventures and mis-adventures in IT.
Tuesday, June 29, 2010
PowerShell - For Each Line in File
get-content D:\Scripts\file.txt | ForEach-Object {
do stuff
$_}
$_ is the variable for the current line in the file.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2012
(1)
►
April
(1)
►
2011
(5)
►
August
(1)
►
June
(3)
►
January
(1)
▼
2010
(13)
►
December
(2)
►
September
(2)
►
August
(2)
▼
June
(3)
PowerShell - For Each Line in File
Show Removed, Old Hardware in Device Manger - Erro...
Choose One Path
►
April
(1)
►
March
(3)
Labels
Activation
(1)
Clustering
(1)
CommandLineReference
(1)
ConfigMgr
(3)
Data Recovery
(1)
Event Logs
(1)
Hyper-V
(6)
MAK
(1)
NatvieMode
(1)
Networking
(2)
Photography
(1)
PowerShell
(4)
Reading List
(1)
SCCM
(1)
Server Core
(2)
Tools
(2)
vbscript
(1)
Windows
(5)
Followers
About Me
Cheif Hack and Flail
View my complete profile
No comments:
Post a Comment