gpt4 book ai didi

linux - 通过脚本中的参数将多个文本文件连接到 Bash 中的单个文件中

转载 作者:太空宇宙 更新时间:2023-11-04 12:08:12 24 4
gpt4 key购买 nike

<分区>

我应该如何使用 Bash 中的脚本在终端中通过参数连接多个文本文件?

#!/bin/bash
while read $1
do
cat $1 > cat.txt
done

我试过那个例子,但它不起作用。

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