|
|
|
|
|
by beagle3
5035 days ago
|
|
I find the "cat foo | .." in the beginning and "| cat > bar" at the end form more regular. While iterating on a command line, it keeps things uniform, rather than switching between "sort foo" and "tai64nlocal < foo" and "ffmpeg -i foo", by which I mean: different programs take their input in different ways. You can normalize by making each take standard input, and feed the chain with a "cat". |
|
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.