gpt4 book ai didi

linux - 如何使用包含文件列表的文本文件作为 cat Linux 命令的输入?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:08:59 26 4
gpt4 key购买 nike

我想使用 cat 命令连接位于不同文件夹中的多个文件。我有一个文本文件,其中包含每个文件的名称和位置(路径)作为一个长列表(例如 filesLocationNames.txt),并且想将其用作 cat 命令的输入。我试过:'cat filesLocationNames.txt | cat * > output.txt'但它没有用。

最佳答案

cat filesLocationNames.txt 怎么样? xargs 猫 > output.txt

关于linux - 如何使用包含文件列表的文本文件作为 cat Linux 命令的输入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40957460/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com