This post is translated from Chinese into English through AI.View Original
AI-generated summary
This is a tutorial on how to use Shell to save all file names or paths in a specific folder to a TXT document. The commands "ls -l | grep ".jpg$" > file.txt" and "ls -R /路径/*.jpg > file.txt" are used for this purpose.
ls -l | grep ".jpg$" > file.txt
ls -R /path/*.jpg > file.txt
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.