Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # find files
- find . -type f |grep -E '.*[A-Za-z]{2,5}\-[0-9]{2,5}[^/]*\.(mkv|mp4|wmv|avi|mpg)$'
- # path files
- cat files.list | sed -r "s/(.*\/[^/]*|\.)\/([^/]*.[^/]*)/\1,\2/g"
- # folder,file csv
- cat files.list | sed -r "s/(.*\/([^/]*)|\.)\/([^/]*.[^/]*)/\1,\3/g" | sed -r "s/\.\/([^/]*,)/\1/g"
Add Comment
Please, Sign In to add comment