|
Possible to Read only Selected lines from multiple files into anotherfile deleting source files when processed? My experience with powershell is measured in hours, but I've got to
say I'm STOKED at what I've seen so far!
I've used my so far limited skills in an attempt to do the following
without success:
I have a folder containing zero to many files named like *.in their
contents are roughly the following format:
Header
dataline xxxxxxxxxxxxxxxxxxxxxxxxxxUseMexxxxxxxxxxxxxxxxxxxxxxxxxxxxx
dataline xxxxxxxxxxxxxxxxxxxxxxxxxxUseMexxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EOF
I need to read only the data lines from each file into a single file
(data.out) and delete each .in file as it has been processed.
I have gotten pretty close filtering by $_.Length -gt 6, but getting
it into a single output file and then deleting the source file eludes
me.
Is this possible and if so how?
Your help is greatly appreciated.
Joe |