Created
April 5, 2017 00:47
-
-
Save supernoveau/d19796ecb23d77d769ac14d61622dd37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively iterate through folder | |
#!/bin/bash | |
FOLDER = ~/Desktop/Folder | |
for file in $(find $FOLDER -name '*.mp4'); do | |
echo $file # will print the full path | |
echo ${file##*/} # will print the filename | |
echo dirname $file | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment