简体   繁体   中英

Bash join command outputs only one line

On an AIX system this command:

    join installed_versions.csv apps_status.csv

With the following input files:

  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 

Gives me only one line of output:

    app installed_version status

And I expect to obtain the following output:

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

我在AIX机器上获得了准确的期望输出,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM