Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移动文件批量 #80

Open
aiastia opened this issue Jun 29, 2024 · 0 comments
Open

移动文件批量 #80

aiastia opened this issue Jun 29, 2024 · 0 comments

Comments

@aiastia
Copy link
Owner

aiastia commented Jun 29, 2024


find -type f \( -name "*.avi" -o -name "*.mp4"  -o -name "*.mkv  -o -name "*.mov  -o -name "*.flv\) -print0 | while read -d $'\0' i; do
	# echo "$i"
	# echo ${i: 2}
	v=${i: 2}
	# echo ${v//\//-}
	q=${v//\//-}
	mv "$i" ./"$q"
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant