[英]Bash: opening multiple files with diferent names in script from one directory
I'm trying to make screen caps/previews of multiple video files (different names). 我正在尝试制作多个视频文件(不同名称)的屏幕截图/预览。 Im using script called SlickSlice, easy to use with one file. 我使用的脚本名为SlickSlice,易于使用一个文件。
I have tried 我努力了
./slickslice-0.9 -x /dir/*
It didn't worked at all. 它根本没有用。 Only first file was loaded and edited. 仅第一个文件被加载和编辑。
Script ussage with one file: 脚本使用一个文件:
./slickslice-0.9 -x /dir/FILENAME
How to handle multiple files in the script and add them as parameter? 如何处理脚本中的多个文件并将其添加为参数? I saw few examples with "for" loop but it was only to rename files. 我看到了几个“ for”循环的示例,但这只是重命名文件。
This might work: 这可能起作用:
for foo in /dir/*; do
./slickslice-0.9 -x "$foo"
done
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.