首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 毁灭是一个命令行工具,可以很容易地应用在多个文件的命令

毁灭是一个命令行工具,可以很容易地应用在多个文件的命令

  • 资源大小:2.42 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: linux find command batch fordo

资 源 简 介

fordo 0.1 by Lars (songcq@gmail.com), updated at Nov 20th, 2010 Usage fordo files -c command [arguments] Description Run command on a list of files. Before running command, {} is replaced to the file name; {n} is replaced to file counter starting from n; (n can be any number) {s/ab*c/ac/g} is replaced to the result of "sed "s/ab*c/ac/g"" on file name; (any other sed scripts also work) Examples To convert all bmp files to jpg format: (convert is a command from ImageMagick) Convert files to 100.jpg, 101.jpg, 102.jpg ... fordo *.bmp -c convert {} {100}.jpg Keep the original basenames fordo *.bmp -c convert {} {s/bmp$/jpg/} Move all text files in subfolders to curren

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP