cmd下过滤文件名称的两种方法

管道方法

D:\Users\wangke351\Desktop\移交脚本\SR_469931_05>dir /b /w | find “lifedata”
fix_SR_469931_01_lifedata_trigger_lbs_wangke351.sql
SR_469931_14_lifedata_ind_las_value_added_tax_table_lbs_wangke351.sql
SR_469931_66_lifedata_grd_lbs_wangke351.sql
SR_469931_67_lifedata_tab_lbs_wangke351.sql
SR_469931_68_lifedata_ind_pol_refund_tax_lbs_wangke351.sql
SR_469931_69_lifedata_tab_lbs_wangke351.sql

通配符

D:\Users\wangke351\Desktop\移交脚本\SR_469931_05>dir /b /w *lifedata*.sql
fix_SR_469931_01_lifedata_trigger_lbs_wangke351.sql
SR_469931_14_lifedata_ind_las_value_added_tax_table_lbs_wangke351.sql
SR_469931_66_lifedata_grd_lbs_wangke351.sql
SR_469931_67_lifedata_tab_lbs_wangke351.sql
SR_469931_68_lifedata_ind_pol_refund_tax_lbs_wangke351.sql
SR_469931_69_lifedata_tab_lbs_wangke351.sql

你可能感兴趣的:(工具)