4

如何复制所有文件的名字?

 3 years ago
source link: https://www.v2ex.com/t/776244
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

如何复制所有文件的名字?

  FaiChou · FaiChou · 21 小时 5 分钟前 · 1278 次点击

x

格式如上图所示, 每一条格式都为: 物流单号+空格+运费+后面一些备注.pdf.

现在想复制所有单号出来:

单号 1
单号 2
单号 3
...
单号 n

我想到的有截图 OCR, 但 OCR 识别有时候会有错误, 并且文件夹下有很多单号, 截一张无法全部完成.

之前学习 Emacs, 有个文件夹模式, 列出的所有文件, 能够当作文本进行选择, 选择后对其修改等操作. 但现在早已忘记, 很久不用 emacs 了..

还有 sed / cut / awk 等命令, 但技术有限(其实换了个行业, 不做开发了), 没能力去研究.

除了这几种方法还有哪些方法?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK