V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
cofcool

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

  •  2
     
  •   cofcool ·
    cofcool · Aug 17, 2023 · 2604 views
    This topic created in 984 days ago, the information mentioned may be changed or developed.

    常用字符串转换工具

    使用: ./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 replies    2023-09-21 15:52:28 +08:00
    foolgry
        1
    foolgry  
       Aug 19, 2023
    工具命令行,就是为了方便,拆成多个命令是不是好一些
    cofcool
        2
    cofcool  
    OP
       Sep 21, 2023 via Android
    @foolgry 增加了程序内部的别名和 shell 别名配置和管理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1191 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:23 · PVG 07:23 · LAX 16:23 · JFK 19:23
    ♥ Do have faith in what you're doing.