logo
  • 教程列表
  • SO官方文檔
  • 使用 printf 避免日期
    • 獲取當前日期
    • 將變數設定為當前時間
  1. StackOverflow 文件
  2. Bash 教程
  3. 使用 printf 避免日期

使用 printf 避免日期

Created: November-22, 2018

使用 printf -v foo '%(...)T'與 foo=$(date +'...') 相同,並儲存一個 fork 來呼叫外部程式 date。

  • 獲取當前日期

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明