powershell - Search for pattern in a file -


how search exact string in file, separated semicolons?

like: username;password;birthdate

so can list users born before 2000?

use import-csv cmdlet , filter them using where-object cmdlet:

import-csv 'your_csv_file' -delimiter ';' |      {($_.birthdate -split '\.')[0] -le 2000} 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -