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
Post a Comment