gpt4 book ai didi

linux - 如何使用 bash 移动到其他目录?

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

<分区>

我的脚本

#!/bin/bash

for file in *.ats; do
mv $file /home/holmes/procmt
done

cd /home/holmes/procmt

所有文件都已移动,但我想将当前目录更改为/home/holmes/procmt 但没有任何反应。为什么?如果我运行脚本 ./pch.sh,我会留在同一个 shell 中。

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