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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -