Browsed by
Month: November 2018

Alternatives for directory listing in shell scripts

Alternatives for directory listing in shell scripts

I often have to repeat a process for every file of a certain type in a given directory. I have been use to using this ls dialogue: #!/bin/bash for file in `ls /data/video`;do   ffmbc – i $file -vcodec prores $file.mov done; This has some drawbacks as it tends to print the entire path to the file so you are restricted to where you put the output files. I have recently spotted a topic discussing this and their solution gives…

Read More Read More