Tuesday, 11 May 2021

How to use terminal to list the files and save into a text file?

for f in ./*.mp4; do echo "file '$PWD/$f'" >> file.txt ; done

 

No comments:

Post a Comment