小编big*_*joe的帖子

为财富命令创建自定义财富

为财富命令创建自定义财富时遇到问题。我运行的是 Mac OS X 10.6,我使用 fink 安装了 Fortune 和 Fortune-mod 命令。这是我的过程:

  1. 我像这样创建一个文本文件:

    ARMED MEN ARE CITIZENS, UNARMED MEN
    ARE SUBJECTS!!! 
    %
    Armenians are
    comical in full battle dress. % Armies
    aren't known for neatness.  -- Solomon
    Short %
    
    Run Code Online (Sandbox Code Playgroud)
  2. 在终端中运行此命令:

    strfile mytextfile quotes.dat
    
    Run Code Online (Sandbox Code Playgroud)
  3. 最后我尝试运行:

    fortune quotes.dat
    
    Run Code Online (Sandbox Code Playgroud)

    并以这个错误向我致意:

    fortune:/Users/bigred/Downloads/quotes.dat not a fortune file or directory
    
    Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

command-line

4
推荐指数
1
解决办法
2065
查看次数

标签 统计

command-line ×1