本帖最后由 ivor 于 2019-10-13 10:59 编辑
回复 1# 胖来胖去
和这个差不多http://www.bathome.net/thread-53959-1-1.html- ls 'ss*' | group {[regex]::Match($_.Name,'[0-9]+(?=\.)')} | ForEach-Object{ mkdir $_.Name -ErrorAction Ignore;Move-Item -Path ($_.Group) -Destination $_.name}
复制代码
|