-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the terminal-commands wiki! combines multiple text files into one with file titles inserted. found at https://stackoverflow.com/questions/5917413/cat-multiple-files-but-include-filename-as-headers head -n99999999 * >> output name.txt /// vcs *.mp4 -c 3 -H 220 -i 3s -ds -dp
ffmpeg -i *.mp4 -vf fps=1 out%d.png
/// resize and move to thumb folder in same directory keeping the same name cp *.jpg thumb/ cd thumb mogrify -resize 224X224 *.JPG
convert -define jpeg:size=250x200 *.jpg -thumbnail 250x200^ -gravity center -extent 250x200 crop/thumbnail-%d.jpeg
/////Rame a folder according to csv names. this is the naming convention in excel in one cell: "Person_21.html;Richard Harman.html" Old name is Person_21.html New name will be Richard Harman.html
CD to folder containing files and csv. run below scripts after each other.
run perl -pi -e 's/\r\n/\n/;' LISTOFNAMES.csv to fix CRLF issues
run while IFS=\; read old new; do mv "$old" "$new"; done < LISTOFNAMES.csv
from: https://apple.stackexchange.com/questions/236213/renaming-files-names-in-bulk-any-smarter-solution