V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
cofcool
V2EX  ›  分享创造

做了一个小工具,支持文件重命名,字符串转换等

  •  2
     
  •   cofcool ·
    cofcool · 254 天前 · 1664 次点击
    这是一个创建于 254 天前的主题,其中的信息可能已经有所发展或是发生改变。

    常用字符串转换工具

    使用: ./mytool.sh --tool=converts --cmd="upper test"

    支持功能(可通过 | 连接多个命令):

    • md5 ,生成指定字符串的 md5 值
    • kindle ,Kindle 笔记内容转换为 Markdown 文档
    • upper/lower ,字符串大小写转换
    • hdate ,时间戳转换为易于阅读的时间格式
    • timesp ,把时间转换为时间戳
    • now ,当前时间戳
    • replace ,字符串替换
    • base64, 编码和解码
    • ...

    Git 提交记录生成更新日志

    使用: ./mytool.sh --tool=gitCommits2Log --path=./

    简单 Web 文件服务器

    使用 ./mytool.sh --tool=dirWebServer

    JSON 生成对象

    使用: ./mytool.sh --tool=json2POJO --path=./

    支持:

    • Java class/record

    Trello 导出的 JSON 文件导入到 Logseq

    支持把从 Trello 看板导出的 JSON 文件导入到 Logseq

    文件重命名

    使用: ./mytool.sh --tool=rename --path=./

    支持:

    • order, 文件序号
    • date, 日期
    • datetime, 时间
    • urlencoded, 解码 URL 编码
    • replace, 字符串替换

    项目链接 https://github.com/cofcool/my-toolbox

    2 条回复    2023-09-21 15:52:28 +08:00
    foolgry
        1
    foolgry  
       252 天前
    工具命令行,就是为了方便,拆成多个命令是不是好一些
    cofcool
        2
    cofcool  
    OP
       219 天前 via Android
    @foolgry 增加了程序内部的别名和 shell 别名配置和管理
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   988 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:20 · PVG 03:20 · LAX 12:20 · JFK 15:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.