cmd命令实现:创建当前日期文件夹,获取/git(包含子文件夹)下所有.jar后缀的文件移动到该文件夹
时间: 2023-03-23 09:01:37 浏览: 111
可以通过以下命令实现:
1. 创建当前日期文件夹:
```
md %date:~0,4%%date:~5,2%%date:~8,2%
```
该命令将创建一个以当前日期为名称的文件夹,例如20230301。
2. 获取/git(包含子文件夹)下所有.jar后缀的文件移动到该文件夹:
```
for /r git\ %f in (*.jar) do move "%f" %date:~0,4%%date:~5,2%%date:~8,2%
```
该命令将在/git文件夹下遍历所有子文件夹,找到所有以.jar结尾的文件,并将其移动到刚才创建的以当前日期为名称的文件夹中。
相关问题
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
这条命令会将FFmpeg的源代码存储库克隆到本地计算机中。在终端或命令提示符中运行以下命令即可执行此操作:
```shell
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
```
这将在当前目录下创建一个名为“ffmpeg”的文件夹,并将FFmpeg的源代码存储库下载到该文件夹中。请注意,运行此命令需要您的计算机上安装了Git。
git clone https://github.com/ros/catkin.git
要克隆https://github.com/ros/catkin.git的git仓库,您可以在工作空间的src路径下执行以下命令行:
```
$ git clone https://github.com/ros/catkin.git
```
这将克隆catkin的git仓库到您的工作空间中的src文件夹中。请确保您的网络连接正常,并且您具有克隆该仓库所需的权限。如果您遇到任何错误,请检查您的网络连接和权限设置。
#### 引用[.reference_title]
- *1* *3* [git clone fatal: unable to access ‘https://github.com/robopeak/rplidar_ros.git/](https://blog.csdn.net/m0_53294928/article/details/122736258)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Ubuntu18.0 Livox mid40配置bug-ROS安装、catkin安装、catkin_make出错](https://blog.csdn.net/weixin_40847138/article/details/115320069)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]