filename contains space and wildcard in a variable

前端 未结 3 1004
难免孤独
难免孤独 2021-01-07 11:35

I receive files which names contain spaces and change every week (the name contains the week number)

IE, the file for this week looks like This is the file - w

3条回答
  •  生来不讨喜
    2021-01-07 11:49

    echo /dir/"This is the file - w"*.csv
    

    or — you almost tried that —

    echo /dir/This\ is\ the\ file\ -\ w*.csv
    

提交回复
热议问题