This is a post about using Shell to save all file names or paths in a folder to a TXT document. The code examples provided use the ls and grep commands to filter for specific file types.
ls -l | grep ".jpg$" > file.txt
ls -R / 路径 /*.jpg > file.txt
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.