比较talend上的2个TXT文件,并显示差异

发布于 2025-01-23 19:57:58 字数 138 浏览 3 评论 0 原文

我想比较talend上的2个TXT文件,并显示差异。

为此,我考虑了“ tfilecompare”,但我不知道如何显示差异。 我还可以使用shell或unix命令“ diff”,但是如何将其集成到talend上?

您对此有什么想法吗?

I would like to compare 2 txt files on talend, and display the differences.

For this I thought about "tfileCompare" but I don’t know how to display the differences.
I could also use a shell or a unix command "diff" but how do I integrate this on talend?

Do you have any ideas for that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒路情人 2025-01-30 19:57:58

您可以通过TMAP组件来执行此操作。

  1. 在Talend中创建新工作。
  2. 使用两个TfileInputDeLimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimimiminimimimigationtents读取您的文本文件。
  3. 使用TMAP加入两个TfileInputDelimited组件,然后执行连接以获取差异。

  1. 在TMAP设置中,在两个源文件之间使用内部加入,然后将“ catch lookup innear comin recepts”设置为您的输出中的true:

​更多详细信息:

You can do this by a tMap component.

  1. Create a new Job in Talend.
  2. Use two tfileinputdelimited components to read your text files.
  3. Use a tmap to join the two tfileinputdelimited components and then perform a join to get the differences.

enter image description here

  1. In the tmap settings, use a inner join between the two source files then set the "catch lookup inner join rejects" to true in your output:

enter image description here

Refer this link for more details: https://help.talend.com/r/mjoDghHoMPI0yuyZ83a13Q/5hp9Au3KXs6Dn73ji9uJmA

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文