If sort, tai64nlocal, and ffmpeg are all happy to read stdin so you can do
cat foo | sort ... cat foo | tai64nlocal ... cat foo | ffmpeg ...
<foo sort ...
... | sort | cat >foo
... | sort >foo
If sort, tai64nlocal, and ffmpeg are all happy to read stdin so you can do
then they can all have their stdin redirected instead by the shell: Similarly with stdout: becomes In both cases regularity of having the filename at the start and end is preserved.