Bash join命令只输出一行

时间:2015-04-17 15:19:05

标签: bash join aix

AIX 系统上执行此命令:

    join installed_versions.csv apps_status.csv

使用以下输入文件:

  1. installed_versions.csv

    app installed_version
    appA 3.5
    appB 3.5
    appC 3.5
    appD 4.3
    appE 5.4
    
  2. apps_status.csv

    app status
    appA Running
    appB Running
    appC Running
    appD Running
    appF Check
    
  3. 只给我一行输出:

        app installed_version status
    

    我希望获得以下输出:

    app installed_version status
    appA 3.5 Running
    appB 3.5 Running
    appC 3.5 Running
    appD 4.3 Running
    

1 个答案:

答案 0 :(得分:0)

我在AIX机器上获得了所需的输出,